Documentation ¶
Index ¶
- type Config
- type UDPSock
- func (u *UDPSock) Close() error
- func (u *UDPSock) Init(ctx context.Context, name string, cfg map[string]interface{}, ...) error
- func (u *UDPSock) RegisterMetrics(reg *prometheus.Registry)
- func (u *UDPSock) SetClusterName(name string)
- func (u *UDPSock) SetEventProcessors(ps map[string]map[string]interface{}, logger *log.Logger)
- func (u *UDPSock) SetLogger(logger *log.Logger)
- func (u *UDPSock) SetName(name string)
- func (u *UDPSock) String() string
- func (u *UDPSock) Write(ctx context.Context, m proto.Message, meta outputs.Meta)
- func (u *UDPSock) WriteEvent(ctx context.Context, ev *formatters.EventMsg)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `mapstructure:"address,omitempty"` // ip:port Rate time.Duration `mapstructure:"rate,omitempty"` BufferSize uint `mapstructure:"buffer-size,omitempty"` Format string `mapstructure:"format,omitempty"` RetryInterval time.Duration `mapstructure:"retry-interval,omitempty"` EnableMetrics bool `mapstructure:"enable-metrics,omitempty"` EventProcessors []string `mapstructure:"event-processors,omitempty"` }
type UDPSock ¶
type UDPSock struct { Cfg *Config // contains filtered or unexported fields }
func (*UDPSock) RegisterMetrics ¶ added in v0.7.0
func (u *UDPSock) RegisterMetrics(reg *prometheus.Registry)
func (*UDPSock) SetClusterName ¶ added in v0.8.0
func (*UDPSock) SetEventProcessors ¶ added in v0.6.0
func (*UDPSock) WriteEvent ¶ added in v0.7.0
func (u *UDPSock) WriteEvent(ctx context.Context, ev *formatters.EventMsg)
Click to show internal directories.
Click to hide internal directories.