Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Eventer ¶ added in v0.0.11
type Eventer struct {
// contains filtered or unexported fields
}
Eventer logs events to CloudWatch Logs.
func NewEventer ¶ added in v0.0.11
func NewEventer( client cloudwatchlogsiface.CloudWatchLogsAPI, group, stream string, options ...EventerOption, ) *Eventer
NewEventer returns a *CloudWatchLogger. It does create the group or stream until the first event is logged.
type EventerOption ¶ added in v0.0.11
type EventerOption func(*opts)
func OptNow ¶ added in v0.0.11
func OptNow(now func() time.Time) EventerOption
OptNow configures NewEventer to obtain timestamps from now. now must be non-nil.
Example use case: reducing precision to make it more difficult to correlate which events likely came from the same user (who may have done a few things in one minute, etc.).
Click to show internal directories.
Click to hide internal directories.