Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListRegisteredSinkTypes ¶
func ListRegisteredSinkTypes() []string
func Register ¶
func Register(item SinkRegItem)
The sink will register itself in `init`. During that the the logger may not be inited. So here we'd better not log anything
Types ¶
type Configuration ¶
type Sink ¶
type Sink interface { Write(headers []string, rows [][]interface{}, index int) error Init(name string, fields []common.Field) error GetStats() *Stats }
func CreateSink ¶
func CreateSink(config Configuration) (Sink, error)
type SinkConstructor ¶
func GetConstructor ¶
func GetConstructor(sinkName string) SinkConstructor
type SinkRegItem ¶
type SinkRegItem struct { Name string Constructor SinkConstructor }
Click to show internal directories.
Click to hide internal directories.