1
0
mirror of https://github.com/go-task/task.git synced 2024-12-16 10:59:23 +02:00
task/internal/status/status.go

16 lines
280 B
Go
Raw Normal View History

package status
var (
_ Checker = &Timestamp{}
_ Checker = &Checksum{}
_ Checker = None{}
)
// Checker is an interface that checks if the status is up-to-date
type Checker interface {
IsUpToDate() (bool, error)
2019-08-25 22:16:59 +02:00
Value() (interface{}, error)
OnError() error
Kind() string
}