sinks

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 2 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 interface {
	WriteMessage(ctx context.Context, msg *logspray.Message) error
	Close() error
}

A MessageWriter is used ot add new messages to an existing log stream. Each message should have a unique numerical Index within the stream.

type Sinker

type Sinker interface {
	// AddSource should return a MessageWriter that log messages can then be
	// written to. All Messages written to the returned writer are associated with
	// the StreamID given. The Labels passed here are sent once at the start of a
	// stream and are associated with every message written to the MessageWriter.
	// StreamID should be a UUID that is uniq to this call to AddSource
	AddSource(StreamID string, Labels map[string]string) (MessageWriter, error)
}

A Sinker accepts new sources of messages.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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