adapter

package
v0.0.0-...-5f1b32d Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter satisfies the router.LogAdapter interface by providing Stream which passes all messages to loggly.

func New

func New(logglyToken string, tags string, bufferSize int) *Adapter

New returns an Adapter that receives messages from logspout. Additionally, it launches a goroutine to buffer and flush messages to loggly.

func (*Adapter) Stream

func (l *Adapter) Stream(logstream chan *router.Message)

Stream satisfies the router.LogAdapter interface and passes all messages to Loggly

Jump to

Keyboard shortcuts

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