Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Started event occurs when the Worker notifies // the Coordinator that the task began processing. Started = "STARTED" // StateChange occurs when a task's state changes. // Handler can inspect the job's State property // in order to determine what state the task is at. StateChange = "STATE_CHANGE" // Read occurs when a Task is read by the client // through the API. Read = "READ" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerFunc ¶
func ApplyMiddleware ¶
func ApplyMiddleware(h HandlerFunc, mws []MiddlewareFunc) HandlerFunc
type HostEnv ¶ added in v0.1.22
type HostEnv struct {
// contains filtered or unexported fields
}
func NewHostEnv ¶ added in v0.1.22
func (*HostEnv) Execute ¶ added in v0.1.22
func (m *HostEnv) Execute(next HandlerFunc) HandlerFunc
type MiddlewareFunc ¶
type MiddlewareFunc func(next HandlerFunc) HandlerFunc
func Redact ¶ added in v0.1.17
func Redact(redacter *redact.Redacter) MiddlewareFunc
func Webhook ¶ added in v0.1.62
func Webhook(ds datastore.Datastore) MiddlewareFunc
Click to show internal directories.
Click to hide internal directories.