helpers

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ORIGIN_NAME = "LATs"

Variables

This section is empty.

Functions

func ConnectToFirehose

func ConnectToFirehose() (<-chan *events.Envelope, <-chan error)

func ConnectToStream

func ConnectToStream(appID string) (<-chan *events.Envelope, <-chan error)

func EmitToMetron

func EmitToMetron(envelope *events.Envelope)

func FindMatchingEnvelope

func FindMatchingEnvelope(msgChan <-chan *events.Envelope, envelope *events.Envelope) *events.Envelope

func FindMatchingEnvelopeByID

func FindMatchingEnvelopeByID(id string, msgChan <-chan *events.Envelope) (*events.Envelope, error)

func FindMatchingEnvelopeByOrigin

func FindMatchingEnvelopeByOrigin(msgChan <-chan *events.Envelope, origin string) *events.Envelope

func Initialize

func Initialize(testConfig *TestConfig)

func RequestContainerMetrics

func RequestContainerMetrics(appID string) ([]*events.ContainerMetric, error)

func RequestRecentLogs

func RequestRecentLogs(appID string) ([]*events.LogMessage, error)

func WaitForWebsocketConnection

func WaitForWebsocketConnection(printer *TestDebugPrinter)

func WriteToEtcd

func WriteToEtcd(urls []string, key, value string) func()

Types

type TestDebugPrinter

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

func SetUpConsumer

func SetUpConsumer() (*consumer.Consumer, *TestDebugPrinter)

func (*TestDebugPrinter) Dump

func (printer *TestDebugPrinter) Dump() string

func (*TestDebugPrinter) Print

func (printer *TestDebugPrinter) Print(title, dump string)

Jump to

Keyboard shortcuts

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