Documentation ¶
Index ¶
- func AwsToMs(ts int64) int64
- func AwsToTime(ts int64) time.Time
- func Log(client *cloudwatchlogs.Client, eventChannel chan CWLEvent, logGroups []string, ...)
- func TimeToAws(tm time.Time) int64
- type AfterAddFunc
- type Arn
- type CWLEvent
- type Deduplicator
- type LogGroupConfig
- type LogStreamingContext
- type LogStreams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AfterAddFunc ¶
type AfterAddFunc func()
type CWLEvent ¶
type CWLEvent interface { EventID() string Timestamp() time.Time Message() string LogGroup() string LogStream() string ShortStreamName() string }
CWLEvent contains data that comprises an cloudwatch logs event
type Deduplicator ¶
type Deduplicator interface { GetLastTimestamp() int64 AddAndExecuteIfNotPresent(eventID string, timestamp int64, afterAdd AfterAddFunc) }
func NewDeduplicator ¶
func NewDeduplicator(sizeLimit int, timeToLive time.Duration) Deduplicator
type LogGroupConfig ¶
LogGroupConfig contains configuration parameters of awslogs driver, including group name, stream prefix and aws region
type LogStreamingContext ¶
type LogStreamingContext struct { Client *cloudwatchlogs.Client Streams LogStreams Dedupe Deduplicator StartTime *time.Time EndTime *time.Time EventChannel chan CWLEvent }
type LogStreams ¶
type LogStreams interface { Get() *logStream Update(stream logStream) }
Click to show internal directories.
Click to hide internal directories.