write

package
v0.1.2-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loki

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

Loki record writer

func NewWriteLoki

func NewWriteLoki(params config.StageParam) (*Loki, error)

NewWriteLoki creates a Loki writer from configuration

func (*Loki) ProcessRecord

func (l *Loki) ProcessRecord(record config.GenericMap) error

func (*Loki) Write

func (l *Loki) Write(entries []config.GenericMap)

Write writes a flow before being stored

type WriteNone

type WriteNone struct {
	PrevRecords []config.GenericMap
}

func (*WriteNone) Write

func (t *WriteNone) Write(in []config.GenericMap)

Write writes entries

type Writer

type Writer interface {
	Write(in []config.GenericMap)
}

func NewWriteNone

func NewWriteNone() (Writer, error)

NewWriteNone create a new write

func NewWriteStdout

func NewWriteStdout(params config.StageParam) (Writer, error)

NewWriteStdout create a new write

Jump to

Keyboard shortcuts

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