devnull

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevNull

type DevNull struct {
}

DevNull is sinks.Sink that drop all traffic

func (*DevNull) AddSource

func (o *DevNull) AddSource(id string, Labels map[string]string) (sinks.MessageWriter, error)

AddSource adds a new source to the sink

type MessageWriter

type MessageWriter struct {
}

MessageWriter is sinks.MessageWriter that drop all traffic

func (*MessageWriter) Close

func (o *MessageWriter) Close() error

Close closes the DevNull writer

func (*MessageWriter) WriteMessage

func (o *MessageWriter) WriteMessage(ctx context.Context, m *logspray.Message) error

WriteMessage writes a message to devnull

Jump to

Keyboard shortcuts

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