firehoseclient

package
v0.0.0-...-d769a67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirehoseConfig

type FirehoseConfig struct {
	RLPAddr                string
	InsecureSSLSkipVerify  bool
	FirehoseSubscriptionID string
	BufferSize             int
}

type FirehoseNozzle

type FirehoseNozzle struct {
	Readerrs chan error

	Stats *stats.Stats
	// contains filtered or unexported fields
}

func NewFirehoseNozzle

func NewFirehoseNozzle(
	eventRouting eventRouting.EventRouting,
	firehoseconfig *FirehoseConfig,
	stats *stats.Stats,
	httpClient doer,
) *FirehoseNozzle

func (*FirehoseNozzle) Draining

func (f *FirehoseNozzle) Draining(ctx context.Context)

func (*FirehoseNozzle) ReadLogsBuffer

func (f *FirehoseNozzle) ReadLogsBuffer(ctx context.Context)

func (*FirehoseNozzle) Start

func (f *FirehoseNozzle) Start(ctx context.Context)

Start consumer and reading ingest loop

func (*FirehoseNozzle) StopReading

func (f *FirehoseNozzle) StopReading()

Stop reading loop

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) Firehose

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

Jump to

Keyboard shortcuts

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