cloudwatch

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudWatchEventer

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

CloudWatchEventer logs events to CloudWatch Logs.

func NewCloudWatchEventer

func NewCloudWatchEventer(client cloudwatchlogsiface.CloudWatchLogsAPI, group, stream string) *CloudWatchEventer

NewCloudWatchEventer returns a *CloudWatchLogger. It does create the group or stream until the first event is logged.

func (*CloudWatchEventer) Close

func (c *CloudWatchEventer) Close() error

func (*CloudWatchEventer) Event

func (c *CloudWatchEventer) Event(typ string, fieldPairs ...interface{})

Event implements Eventer.

func (*CloudWatchEventer) Init

func (c *CloudWatchEventer) Init(ctx context.Context) error

Init initializes the group and stream used by c. It will only attempt initialization once, subsequently returning the result of that attempt.

Jump to

Keyboard shortcuts

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