pusher

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchLogPusher

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

BatchLogPusher cwLogsClient for handling log events. @TODO convert into lib reused by fluentbit-cloudwatchlogs

func NewBatchLogPusher

func NewBatchLogPusher(ctx context.Context, logger log.Logger, cwLogsClient types.CloudwatchLogsInterface, group, stream string, batchSize int) *BatchLogPusher

NewBatchLogPusher creates a new batch log pusher.

func (*BatchLogPusher) Add

Add event to the cwLogsClient.

func (*BatchLogPusher) CreateLogGroup

func (p *BatchLogPusher) CreateLogGroup(ctx context.Context, group string) error

CreateLogGroup will attempt to create a log group and not return an error if it already exists.

func (*BatchLogPusher) CreateLogStream

func (p *BatchLogPusher) CreateLogStream(ctx context.Context, group, stream string) error

CreateLogStream will attempt to create a log stream and not return an error if it already exists.

func (*BatchLogPusher) Flush

func (p *BatchLogPusher) Flush(ctx context.Context) error

Flush events stored in the cwLogsClient.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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