Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidActionType = errors.New("invalid action type")
)
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Type ActionType `yaml:"type"` HTTPRequestAction `yaml:",inline"` }
Action is action definition.
type ActionType ¶
type ActionType string
ActionType represents action type.
const ( // ActionNone is uncategorized action type. ActionNone ActionType = "" // ActionHTTP is action type for HTTP action. ActionHTTP ActionType = "http" )
type Config ¶
type Config struct { Version string `yaml:"version"` Handlers []EventHandler `yaml:"handlers"` }
Config represents a config.yml.
type EventHandler ¶
type EventHandler struct { Subscription string `yaml:"subscription"` Action Action `yaml:"action"` }
EventHandler is event handler which contains action names.
Click to show internal directories.
Click to hide internal directories.