api

package
v0.0.0-...-d52619c Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter interface {
	Filter(ctx context.Context, ts time.Time, data *fastjson.Value, meta map[string]interface{}) error
	Start(context.Context) error
}

type Input

type Input interface {
	To(Writer)
	Start(context.Context) error
}

type JsonEngine

type JsonEngine struct {
	// contains filtered or unexported fields
}

func NewJsonEngine

func NewJsonEngine(output Output, filters ...Filter) *JsonEngine

func (*JsonEngine) Write

func (j *JsonEngine) Write(ctx context.Context, ts time.Time, line string) error

type Output

type Output interface {
	Write(ctx context.Context, ts time.Time, line string, meta map[string]interface{}) error
	Close() error
}

type Writer

type Writer interface {
	Write(ctx context.Context, ts time.Time, line string) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL