eventclient

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsEventBridgeClient

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

func New

func New(accessKey, secretKey, region, eventBus string) (*AwsEventBridgeClient, error)

func (*AwsEventBridgeClient) Send

func (a *AwsEventBridgeClient) Send(events ...Event) error

type Client

type Client interface {
	Send(events ...Event) error
}

type Event

type Event struct {
	Id         uuid.UUID      `json:"id"`
	UserId     uuid.UUID      `json:"userId"`
	DetailType string         `json:"detailType"`
	Source     string         `json:"source"`
	Time       types.DateTime `json:"time"`
	Detail     any            `json:"detail"`
}

Jump to

Keyboard shortcuts

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