Documentation ¶
Overview ¶
Package profile provides types used to configure the Gakisitor and its plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyAccessPath = errors.New("empty access path") ErrInvalidAccessPath = errors.New("invalid access path") ErrInvalidIndexType = errors.New("invalid index path type (must be a string or an int)") ErrOutOfBoundIndex = errors.New("out of bound index path") )
Errors which can be occur in AccessTo function.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { Name string `json:"name"` // plugin name Path string `json:"path"` // plugin library path Config Raw `json:"config"` // plugin configuration }
Plugin describes the plugin profile.
type Profile ¶
type Profile struct { LinkID string `json:"link_id"` // unique link id, used to identify the Gakisitor // Scheduler configuration. Scheduler struct { // information about worker failure Worker struct { Retry int `json:"retry"` // how many time the scheduler restart a worker with a 'failed' tag before shutdown Interval int `json:"interval"` // in which interval a worker which restart is tagged has failed (in ms) } `json:"worker"` } `json:"scheduler"` // Network configuration Network struct { HostAddress string `json:"host_address"` // host address (IPv4 / IPv6) Port int `json:"port"` // host port EnableSsl bool `json:"enable_ssl"` // enable SSL (if required) } `json:"network"` // Plugins configuration Plugins []Plugin `json:"plugins"` // Log configuration Log struct { Format string `json:"format"` Path string `json:"path"` } // contains filtered or unexported fields }
Profile represents the configuration of the Gakisitor. It contains all required information about network, scheduler and plugins.
Click to show internal directories.
Click to hide internal directories.