Files
task/internal/status/status.go
2019-08-25 09:39:39 -07:00

16 lines
275 B
Go

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)
Value() (string, error)
OnError() error
Kind() string
}