logmux

package
v0.0.0-...-1d4c075 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AppID, HostID, JobID, JobType string
}

type LogStream

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

func (*LogStream) Close

func (s *LogStream) Close() string

type Mux

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

LogMux collects log lines from multiple leaders and forwards them to logaggregator instances and local files.

func New

func New(hostID, logDir string, logger log15.Logger) *Mux

func (*Mux) Follow

func (m *Mux) Follow(r io.ReadCloser, buffer string, fd int, config Config) *LogStream

Follow starts a goroutine that reads log lines from the reader into the mux. It runs until the reader is closed or an error occurs. If an error occurs, the reader may still be open.

func (*Mux) StreamLog

func (m *Mux) StreamLog(appID, jobID string, history, follow bool, ch chan<- *rfc5424.Message) (stream.Stream, error)

func (*Mux) StreamToAggregators

func (m *Mux) StreamToAggregators(s discoverd.Service) error

Jump to

Keyboard shortcuts

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