Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var OutputTypes = []string{
"file",
"influxdb",
"kafka",
"nats",
"prometheus",
"stan",
"tcp",
"udp",
}
View Source
var Outputs = map[string]Initializer{}
Functions ¶
func DecodeConfig ¶ added in v0.4.0
func DecodeConfig(src, dst interface{}) error
func Register ¶
func Register(name string, initFn Initializer)
Types ¶
type Initializer ¶
type Initializer func() Output
type Option ¶ added in v0.5.2
type Option func(Output)
func WithClusterName ¶ added in v0.8.0
func WithEventProcessors ¶ added in v0.6.0
func WithLogger ¶ added in v0.5.2
func WithRegister ¶ added in v0.7.0
func WithRegister(reg *prometheus.Registry) Option
type Output ¶
type Output interface { Init(context.Context, string, map[string]interface{}, ...Option) error Write(context.Context, proto.Message, Meta) WriteEvent(context.Context, *formatters.EventMsg) Close() error RegisterMetrics(*prometheus.Registry) String() string SetLogger(*log.Logger) SetEventProcessors(map[string]map[string]interface{}, *log.Logger, map[string]interface{}) SetName(string) SetClusterName(string) }
Click to show internal directories.
Click to hide internal directories.