eventhandler

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

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

EventHandler provides handler methods for updating items in Db in response to external events such as from teh access handler

func New

func New(ctx context.Context, db ddb.Storage) (*EventHandler, error)

func (*EventHandler) HandleEvent

func (n *EventHandler) HandleEvent(ctx context.Context, event events.CloudWatchEvent) (err error)

func (*EventHandler) HandleGrantEvent

func (n *EventHandler) HandleGrantEvent(ctx context.Context, log *zap.SugaredLogger, event events.CloudWatchEvent) error

HandleGrantEvent will update the status of a grant in response to events emitted by the access handler

Jump to

Keyboard shortcuts

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