stdout

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageWriter

type MessageWriter struct {
}

MessageWriter implements a message writer for the Stdout Sink

func (*MessageWriter) Close

func (o *MessageWriter) Close() error

Close closes the Srdout sink

func (*MessageWriter) WriteMessage

func (o *MessageWriter) WriteMessage(m *logspray.Message) error

WriteMessage writes a message to the stdout sink.

type Stdout

type Stdout struct {
}

Stdout is a sink.Sinker that wites streams to stdout.

func (*Stdout) AddSource

func (o *Stdout) AddSource(ctx context.Context, id string, Labels map[string]string) (sinks.MessageWriter, error)

AddSource implements sink.Sinker

Jump to

Keyboard shortcuts

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