Documentation ¶
Index ¶
Constants ¶
View Source
const ( ProgressProcessing = "processing" ProgressCompleted = "completed" )
Variables ¶
This section is empty.
Functions ¶
func NotifyForEmail ¶
func NotifyForNtfy ¶
func RegisterPlan ¶
Types ¶
type Plan ¶
type Plan struct { Precondition func() (StatusCode, error) Todo func(string) error WriteToDB func(string, error) error Alias string Name string Status StatusCode NotifyWithError func(error) error // contains filtered or unexported fields }
func (*Plan) IsCompleted ¶
func (*Plan) SetStatus ¶
func (p *Plan) SetStatus(status StatusCode)
type StatusCode ¶
type StatusCode int
const ( Pending StatusCode = iota Ready Completed )
func (StatusCode) String ¶
func (s StatusCode) String() string
Click to show internal directories.
Click to hide internal directories.