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: 0

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