outputs

package
Version: v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Maker

func Maker(collectorId string, conf map[string]interface{}) func(*loggerpkg.Logger) Output

Different collector must use separate output. Because output has internal state. For example, elasticsearch has currentIndex state, it's designed having only one file in mind. So, when a collector is constructed, use a maker to make a new ouput.

func Setup

func Setup(logger *loggerpkg.Logger)

Types

type Output

type Output interface {
	Write(rows []map[string]interface{}) (ok bool)
}

func New

func New(collectorId string, typ string, conf map[string]interface{}, logger *loggerpkg.Logger) Output

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL