1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

add checksum based status check, alternative to timestamp based

This commit is contained in:
Andrey Nering
2017-09-16 11:44:13 -03:00
parent 95f7b9443f
commit c295a1998a
15 changed files with 315 additions and 97 deletions

13
status/status.go Normal file
View File

@@ -0,0 +1,13 @@
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)
OnError() error
}