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 Headers ¶ added in v0.7.0
type Headers map[string]interface{}
Headers are a map with key and values used do pass parameters to runners Every runner can choose how to handle the headers values but they will only support these types:
bool float32 float64 int int16 int32 int64 string time.Time []byte
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 `mapstructure:"headers" default:"{}"` }
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.