egress

package
v0.0.0-...-14308cf Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextDone

func ContextDone(ctx context.Context) bool

Types

type DiodeWriter

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

func NewDiodeWriter

func NewDiodeWriter(
	ctx context.Context,
	wc WriteCloser,
	alerter gendiodes.Alerter,
	wg WaitGroup,
) *DiodeWriter

func (*DiodeWriter) Write

func (d *DiodeWriter) Write(env *loggregator_v2.Envelope) error

Write writes an envelope into the diode. This can not fail.

type WaitGroup

type WaitGroup interface {
	Add(delta int)
	Done()
}

type WriteCloser

type WriteCloser interface {
	Write(*loggregator_v2.Envelope) error
	io.Closer
}

type Writer

type Writer interface {
	Write(*loggregator_v2.Envelope) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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