ktail

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByTimestamp

type ByTimestamp []*LogMessage

ByTimestamp used to sort log messages

func (ByTimestamp) Len

func (a ByTimestamp) Len() int

func (ByTimestamp) Less

func (a ByTimestamp) Less(i, j int) bool

func (ByTimestamp) Swap

func (a ByTimestamp) Swap(i, j int)

type KinesisHelper

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

KinesisHelper simple helper for general high level kinesis operations

func New

New build a new configured kinesis helper

func (*KinesisHelper) GetStreamIterators

func (kh *KinesisHelper) GetStreamIterators(streamName string, timestamp int64) (map[string]*string, error)

GetStreamIterators build a list of iterators for the stream

type LogBatch

type LogBatch struct {
	MessageType         string      `json:"messageType,omitempty"`
	Owner               string      `json:"owner,omitempty"`
	LogGroup            string      `json:"logGroup,omitempty"`
	LogStream           string      `json:"logStream,omitempty"`
	SubscriptionFilters []string    `json:"subscriptionFilters,omitempty"`
	LogEvents           []*LogEntry `json:"logEvents,omitempty"`
}

LogBatch matches the cloudwatch logs batch structure

type LogEntry

type LogEntry struct {
	ID        string `json:"id,omitempty"`
	Timestamp int64  `json:"timestamp,omitempty"`
	Message   string `json:"message,omitempty"`
}

LogEntry matches the cloudwatch log entry structure

type LogMessage

type LogMessage struct {
	LogGroup  string // optional log group
	Message   string
	Timestamp string
}

LogMessage log message after decompression and parsing

Jump to

Keyboard shortcuts

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