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.
Click to show internal directories.
Click to hide internal directories.