Documentation ¶
Index ¶
Constants ¶
View Source
const ErrorTag = "gogstash_output_redis_error"
ErrorTag tag added to event when process module failed
View Source
const ModuleName = "redis"
ModuleName is the name used in config file
Variables ¶
View Source
var ( ErrorPingFailed = errutil.NewFactory("ping redis server failed") ErrorEventMarshalFailed1 = errutil.NewFactory("event Marshal failed: %v") ErrorUnsupportedDataType1 = errutil.NewFactory("unsupported data type: %q") )
errors
Functions ¶
func InitHandler ¶
InitHandler initialize the output plugin
Types ¶
type OutputConfig ¶
type OutputConfig struct { config.OutputConfig Host []string `json:"host"` Key string `json:"key"` DataType string `json:"data_type,omitempty"` // one of ["list", "channel"] Timeout int `json:"timeout,omitempty"` ReconnectInterval int `json:"reconnect_interval,omitempty"` Connections int `json:"connections"` // maximum number of socket connections, default: 10 // contains filtered or unexported fields }
OutputConfig holds the configuration json fields and internal objects
func DefaultOutputConfig ¶
func DefaultOutputConfig() OutputConfig
DefaultOutputConfig returns an OutputConfig struct with default values
Click to show internal directories.
Click to hide internal directories.