outputlog

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Follow added in v0.1.1

func Follow(r Reader, p *Printer, stopCh chan struct{}) error

func SortEventsByInstance added in v0.1.6

func SortEventsByInstance(events []*Event)

func SortEventsByTimestamp added in v0.1.1

func SortEventsByTimestamp(events []*Event)

Types

type CloudWatchLogsReader added in v0.1.1

type CloudWatchLogsReader struct {
	CloudWatchLogs  awsclient.CloudWatchLogs
	LogGroup        string
	LogStreamPrefix string
	SortByTime      bool
}

func (*CloudWatchLogsReader) Read added in v0.1.1

func (r *CloudWatchLogsReader) Read() ([]*Event, error)

type Colorer added in v0.1.4

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

func NewColorer added in v0.1.4

func NewColorer() *Colorer

func (*Colorer) Color added in v0.1.4

func (c *Colorer) Color(key string) *color.Color

type Event added in v0.1.1

type Event struct {
	Message   string
	Timestamp time.Time
	LogStream string
}

func (*Event) InstanceID added in v0.1.1

func (e *Event) InstanceID() string

type KinesisReader added in v0.1.1

type KinesisReader struct {
	Kinesis         awsclient.Kinesis
	StartTimestamp  time.Time
	LogGroup        string
	LogStreamPrefix string
	// contains filtered or unexported fields
}

func (*KinesisReader) Read added in v0.1.1

func (r *KinesisReader) Read() ([]*Event, error)

type Printer

type Printer struct {
	Writer io.Writer
	// contains filtered or unexported fields
}

func NewPrinter added in v0.1.1

func NewPrinter(writer io.Writer) *Printer

func (*Printer) Print added in v0.1.1

func (p *Printer) Print(events []*Event)

type Reader added in v0.1.1

type Reader interface {
	Read() ([]*Event, error)
}

Jump to

Keyboard shortcuts

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