Documentation
¶
Index ¶
Constants ¶
View Source
const ( ExitTimeout = -1 ExitACK = 0 ExitFailed = 1 ExitNACK = 3 ExitNACKRequeue = 4 ExitRetry = 5 )
Exit constants used to know how handle the message. The consumer runnig is the responsible to understand this status and handle them properly.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Type string `mapstructure:"type"` IgnoreOutput bool `mapstructure:"ignore-output"` Options Options `mapstructure:"options"` Timeout time.Duration `mapstructure:"timeout"` }
Config is an composition of options and configurations used by this runnables.
type Options ¶
type Options struct { // Command options Path string `mapstructure:"path"` Args []string `mapstructure:"args"` // HTTP options URL string `mapstructure:"url"` ReturnOn5xx int `mapstructure:"return-on-5xx" default:"4"` Headers map[string]string }
Options is a composition os all options used internally by runners. options not needed by one runner will be ignored.
Click to show internal directories.
Click to hide internal directories.