drain

package
v3.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: Apache-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

View Source
const DRAIN_PREFIX = "tmp.applog_endpoint"
View Source
const LINESERVER_PROTO = "udp"

UDP can lead to data loss, but that's OK for log streaming.

Variables

This section is empty.

Functions

func RemoveOrphanedDrains

func RemoveOrphanedDrains()

RemoveOrphanedDrains removes all drains created by applog_endpoint.

Types

type AppLogDrain

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

func NewAppLogDrain

func NewAppLogDrain(appGUID string) (*AppLogDrain, error)

func (*AppLogDrain) Id

func (d *AppLogDrain) Id() string

func (*AppLogDrain) Start

func (d *AppLogDrain) Start() (chan string, error)

func (*AppLogDrain) Stop

func (d *AppLogDrain) Stop(reason error)

func (*AppLogDrain) Wait

func (d *AppLogDrain) Wait() error

Jump to

Keyboard shortcuts

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