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:
13
status/status.go
Normal file
13
status/status.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user