Documentation ¶
Index ¶
- func Fatal(err error)
- func IsBefore(horizon time.Duration, lastEventTimestamp int64) bool
- func ToTime(timestamp int64) time.Time
- func ValidateMultiline(multiline *Multiline) error
- type AwsSession
- type Config
- type DummyRegistry
- type Event
- type EventPublisher
- type Group
- type GroupManager
- type Multiline
- type Params
- type Prospector
- type Publisher
- type Registry
- type RegistryItem
- type S3Registry
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateMultiline ¶
Validates a multiline configuration section
Types ¶
type AwsSession ¶
type AwsSession struct {
// contains filtered or unexported fields
}
func NewAwsSession ¶
func NewAwsSession(awsRegion string) *AwsSession
func (*AwsSession) CloudWatchLogsClient ¶
func (sess *AwsSession) CloudWatchLogsClient() cloudwatchlogsiface.CloudWatchLogsAPI
func (*AwsSession) S3Client ¶
func (sess *AwsSession) S3Client() s3iface.S3API
type Config ¶
type Config struct { S3BucketName string `config:"s3_bucket_name"` S3KeyPrefix string `config:"s3_key_prefix"` GroupRefreshFrequency time.Duration `config:"group_refresh_frequency"` StreamRefreshFrequency time.Duration `config:"stream_refresh_frequency"` ReportFrequency time.Duration `config:"report_frequency"` AWSRegion string `config:"aws_region"` HotStreamEventHorizon time.Duration `config:"hot_stream_event_horizon"` HotStreamEventRefreshFrequency time.Duration `config:"hot_stream_event_refresh_frequency"` StreamEventHorizon time.Duration `config:"stream_event_horizon"` StreamEventRefreshFrequency time.Duration `config:"stream_event_refresh_frequency"` Prospectors []Prospector `config:"prospectors"` }
func DefaultConfig ¶
type DummyRegistry ¶
type DummyRegistry struct {
// contains filtered or unexported fields
}
func (*DummyRegistry) ReadStreamInfo ¶
func (registry *DummyRegistry) ReadStreamInfo(stream *Stream) error
func (*DummyRegistry) WriteStreamInfo ¶
func (registry *DummyRegistry) WriteStreamInfo(stream *Stream) error
type EventPublisher ¶
type EventPublisher interface { Publish(event *Event) Close() }
type Group ¶
type Group struct { Name string Prospector *Prospector Params *Params // contains filtered or unexported fields }
func (*Group) RefreshStreams ¶
func (group *Group) RefreshStreams()
type GroupManager ¶
type GroupManager struct { Params *Params // contains filtered or unexported fields }
func NewGroupManager ¶
func NewGroupManager(params *Params) *GroupManager
func (*GroupManager) Monitor ¶
func (manager *GroupManager) Monitor()
type Params ¶
type Params struct { Config *Config Registry Registry AWSClient cloudwatchlogsiface.CloudWatchLogsAPI Publisher EventPublisher }
type Prospector ¶
type Registry ¶
func NewDummyRegistry ¶
func NewDummyRegistry() Registry
type RegistryItem ¶
type S3Registry ¶
func (*S3Registry) GetBucketKeyForStream ¶ added in v1.2.0
func (registry *S3Registry) GetBucketKeyForStream(stream *Stream) string
func (*S3Registry) ReadStreamInfo ¶
func (registry *S3Registry) ReadStreamInfo(stream *Stream) error
func (*S3Registry) WriteStreamInfo ¶
func (registry *S3Registry) WriteStreamInfo(stream *Stream) error
type Stream ¶
type Stream struct { Name string Group *Group Params *Params LastEventTimestamp int64 // the last event that we've processed (in milliseconds since 1970) // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.