handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogStreamName is the name of the log stream where all events will be pushed to.
	LogStreamName = "cloudfront"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

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

EventHandler defines the event handler.

func NewEventHandler

func NewEventHandler(log *slog.Logger, downloadClient manager.DownloadAPIClient, cwLogsClient *cloudwatchlogs.Client, batchSize int) *EventHandler

NewEventHandler creates a new event handler.

func (*EventHandler) HandleEvent

func (h *EventHandler) HandleEvent(ctx context.Context, record events.S3EventRecord) error

HandleEvent handles the event.

Jump to

Keyboard shortcuts

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