sink

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Stderr = "stderr"
	File   = "file"
	Loki   = "loki"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSink

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

func NewFileSink

func NewFileSink(path string) (*FileSink, error)

func (*FileSink) String

func (f *FileSink) String() string

func (*FileSink) Write

func (f *FileSink) Write(event *probe.Event) error

type LokiSink

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

func NewLokiSink

func NewLokiSink(addr string, node string) (*LokiSink, error)

func (*LokiSink) String

func (l *LokiSink) String() string

func (*LokiSink) Write

func (l *LokiSink) Write(event *probe.Event) error

type Sink

type Sink interface {
	Write(event *probe.Event) error
}

func CreateSink

func CreateSink(name string, args interface{}) (Sink, error)

type StderrSink

type StderrSink struct {
}

func NewStderrSink

func NewStderrSink() *StderrSink

func (*StderrSink) String

func (s *StderrSink) String() string

func (*StderrSink) Write

func (s *StderrSink) Write(event *probe.Event) error

Jump to

Keyboard shortcuts

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