Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface { eh.Command // ExecuteAt returns the time when the command will execute. ExecuteAt() time.Time }
Command is a scheduled command with an execution time.
type CommandHandler ¶
type CommandHandler struct { eh.CommandHandler // contains filtered or unexported fields }
CommandHandler handles commands either directly or with a delay on a schedule.
func NewCommandHandler ¶
func NewCommandHandler(handler eh.CommandHandler) *CommandHandler
NewCommandHandler creates a CommandHandler.
func (*CommandHandler) Errors ¶
func (h *CommandHandler) Errors() <-chan Error
Errors returns the error channel.
func (*CommandHandler) HandleCommand ¶
HandleCommand implements the HandleCommand method of the eventhorizon.CommandHandler interface.
Click to show internal directories.
Click to hide internal directories.