egress

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Egress

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

func New

func New(c client, m <-chan *loggregator_v2.Envelope) *Egress

New returns a new Egress.

func (*Egress) Start

func (e *Egress) Start() func()

Start spins up a go routine that sends envelopes to Loggregator. It returns a shutdown function which blocks until all messages are drained. If a message fails to send it will reconnect to Loggregator and retry sending that message.

Jump to

Keyboard shortcuts

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