nozzle

package
v0.0.207 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelMaker

type LabelMaker interface {
	Build(*events.Envelope) map[string]string
}

func NewLabelMaker

func NewLabelMaker(appInfoRepository cloudfoundry.AppInfoRepository) LabelMaker

type Nozzle

type Nozzle struct {
	LogSink    Sink
	MetricSink Sink

	Heartbeater heartbeat.Heartbeater
	// contains filtered or unexported fields
}

func (*Nozzle) Start

func (n *Nozzle) Start(firehose cloudfoundry.Firehose) (errs chan error, fhErrs <-chan error)

func (*Nozzle) Stop

func (n *Nozzle) Stop()

type PostMetricError

type PostMetricError struct {
	Errors []error
}

func (*PostMetricError) Error

func (e *PostMetricError) Error() string

type Sink

type Sink interface {
	Receive(*events.Envelope) error
}

func NewLogSink

func NewLogSink(labelMaker LabelMaker, logAdapter stackdriver.LogAdapter, newlineToken string) Sink

func NewMetricSink

func NewMetricSink(labelMaker LabelMaker, metricBuffer stackdriver.MetricsBuffer, unitParser UnitParser) Sink

type UnitParser

type UnitParser interface {
	Parse(string) string
}

func NewUnitParser

func NewUnitParser() UnitParser

Jump to

Keyboard shortcuts

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