logs

package
v6.41.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoaaLogMessage

func NewNoaaLogMessage(m *events.LogMessage) *noaaLogMessage

Types

type Loggable

type Loggable interface {
	ToLog(loc *time.Location) string
	ToSimpleLog() string
	GetSourceName() string
}

type NoaaConsumer

type NoaaConsumer interface {
	TailingLogs(string, string) (<-chan *events.LogMessage, <-chan error)
	RecentLogs(appGUID string, authToken string) ([]*events.LogMessage, error)
	Close() error
	SetOnConnectCallback(cb func())
	RefreshTokenFrom(tr consumer.TokenRefresher)
}

type NoaaLogsRepository

type NoaaLogsRepository struct {
	BufferTime time.Duration
	// contains filtered or unexported fields
}

func NewNoaaLogsRepository

func NewNoaaLogsRepository(config coreconfig.Reader, consumer NoaaConsumer, tr authentication.TokenRefresher, retryTimeout time.Duration) *NoaaLogsRepository

func (*NoaaLogsRepository) Close

func (repo *NoaaLogsRepository) Close()

func (*NoaaLogsRepository) RecentLogsFor

func (repo *NoaaLogsRepository) RecentLogsFor(appGUID string) ([]Loggable,