logs

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logs implements AWS CloudWatchLogs tailing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logs

type Logs struct {
	Service       cloudwatchlogsiface.CloudWatchLogsAPI
	Log           log.Interface
	GroupName     string
	FilterPattern string
	// contains filtered or unexported fields
}

Logs implements log tailing for CloudWatchLogs.

func (*Logs) Err

func (l *Logs) Err() error

Err returns the first error, if any, during processing.

func (*Logs) Fetch added in v0.5.0

func (l *Logs) Fetch() ([]*cloudwatchlogs.FilteredLogEvent, error)

Fetch log events.

func (*Logs) Tail

func (l *Logs) Tail() <-chan *cloudwatchlogs.FilteredLogEvent

Tail logs, make sure to check Err() after the returned channel closes.

Jump to

Keyboard shortcuts

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