logstream

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogStream

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

func New

func New(
	url string,
	skipSSLValidation bool,
	subscriptionID string,
	metricsStore *metrics.Store,
	httpClient doer,
) *LogStream

func (*LogStream) Start

func (n *LogStream) Start()

Start processes both errors and messages until both channels are closed It then closes the underlying consumer.

type Streamer

type Streamer interface {
	Stream(ctx context.Context, req *loggregator_v2.EgressBatchRequest) loggregator.EnvelopeStream
}

type V2Adapter

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

func NewV2Adapter

func NewV2Adapter(s Streamer) *V2Adapter

func (*V2Adapter) Close

func (a *V2Adapter) Close()

func (*V2Adapter) Firehose

func (a *V2Adapter) Firehose(subscriptionID string) chan *events.Envelope

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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