Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "socket"
ModuleName is the name used in config file
Variables ¶
This section is empty.
Functions ¶
func InitHandler ¶
func InitHandler(confraw *config.ConfigRaw) (config.TypeInputConfig, error)
InitHandler initialize the input plugin
Types ¶
type InputConfig ¶
type InputConfig struct { config.InputConfig Socket string `json:"socket"` // Type of socket, must be one of ["tcp", "unix", "unixpacket"]. Address string `json:"address"` // For TCP, address must have the form `host:port`. For Unix networks, the address must be a file system path. }
InputConfig holds the output configuration json fields
func DefaultInputConfig ¶
func DefaultInputConfig() InputConfig
DefaultInputConfig returns an InputConfig struct with default values
func (*InputConfig) Start ¶
func (i *InputConfig) Start()
Start wraps the actual function starting the plugin
Click to show internal directories.
Click to hide internal directories.