cloudwatch

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents CloudWatch Logs client

func NewClient

func NewClient(conf *config.Config) *Client

NewClient creates a new instance of the CLoudWatch Logs client

func (*Client) ListGroups

func (cwl *Client) ListGroups() (groupNames []string, err error)

ListGroups lists group names matching the specified filter

func (*Client) ListStreams

func (cwl *Client) ListStreams(ctx context.Context, groupName string, since int64) (streams []*LogStream, err error)

ListStreams lists stream names matching the specified filter

func (*Client) Tail

func (cwl *Client) Tail(ctx context.Context) error

Tail tails log

type LogStream

type LogStream struct {
	Name               *string
	LastEventTimestamp *int64
}

LogStream is log stream

Jump to

Keyboard shortcuts

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