Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decorator ¶
Decorator functions typically modify behavior of the given delegate Handler.
type Decorators ¶
type Decorators []Decorator
Decorators aggregates Decorator functions
func (Decorators) Apply ¶
func (ds Decorators) Apply(h Handler) Handler
Apply applies the Decorators in the order they're listed such that the last Decorator invoked generates the final (wrapping) Handler that is ultimately returned.
type Handler ¶
Handler is invoked upon the occurrence of some executor event that is generated by some other component in the Mesos ecosystem (e.g. master, agent, executor, etc.)
type HandlerFunc ¶
HandlerFunc is a functional adaptation of the Handler interface
func (HandlerFunc) HandleEvent ¶
func (f HandlerFunc) HandleEvent(e *executor.Event) error
HandleEvents implements Handler for HandlerFunc
type Mux ¶
type Mux struct {
// contains filtered or unexported fields
}
Mux maps event types to Handlers (only one Handler for each type). A "default" Handler implementation may be provided to handle cases in which there is no registered Handler for specific event type.
func (*Mux) HandleEvent ¶
HandleEvent implements Handler for Mux
type Option ¶
Option is a functional configuration option that returns an "undo" option that reverts the change made by the option.
func DefaultHandler ¶
DefaultHandler returns an option that configures the default handler that's invoked in cases where there is no Handler registered for specific event type.