Documentation ¶
Overview ¶
Package event contains all event emitters supported by this package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CronParser = cron.NewParser(cron.SecondOptional | cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow | cron.Descriptor)
Functions ¶
This section is empty.
Types ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
func (*Cron) BuildTickChannel ¶
BuildTickChannel implements abstraction.Scheduler.
type DockerEvent ¶ added in v0.6.0
type DockerEvent struct {
// contains filtered or unexported fields
}
func NewDockerEvent ¶ added in v0.6.0
func (*DockerEvent) BuildTickChannel ¶ added in v0.6.0
func (de *DockerEvent) BuildTickChannel() <-chan any
BuildTickChannel implements abstraction.Scheduler.
type ErrorLimitPolicy ¶ added in v0.6.0
type ErrorLimitPolicy string
const ( Kill ErrorLimitPolicy = "kill" GiveUp ErrorLimitPolicy = "give-up" Reconnect ErrorLimitPolicy = "reconnect" )
type Init ¶
type Init struct{}
func (*Init) BuildTickChannel ¶
BuildTickChannel implements abstraction.Scheduler.
type Interval ¶
type Interval struct {
// contains filtered or unexported fields
}
func (*Interval) BuildTickChannel ¶
BuildTickChannel implements abstraction.Scheduler.
type WebEventListener ¶
type WebEventListener struct {
// contains filtered or unexported fields
}
func NewEventListener ¶
func NewEventListener(event string) WebEventListener
func (*WebEventListener) BuildTickChannel ¶
func (w *WebEventListener) BuildTickChannel() <-chan any
BuildTickChannel implements abstraction.Scheduler.
Click to show internal directories.
Click to hide internal directories.