event

package
v1.114.0-pfs-187-addin... Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(cfg aws.Config, eventBusName string) *Client

func (*Client) CreditOnAccount

func (c *Client) CreditOnAccount(ctx context.Context, event CreditOnAccount) error

func (*Client) FinanceAdminUploadProcessed

func (c *Client) FinanceAdminUploadProcessed(ctx context.Context, event FinanceAdminUploadProcessed) error

type CreditOnAccount

type CreditOnAccount struct {
	ClientID        int `json:"clientId"`
	CreditRemaining int `json:"creditRemaining"`
}

type EventBridgeClient

type EventBridgeClient interface {
	PutEvents(ctx context.Context, params *eventbridge.PutEventsInput, optFns ...func(*eventbridge.Options)) (*eventbridge.PutEventsOutput, error)
}

type FinanceAdminUploadProcessed

type FinanceAdminUploadProcessed struct {
	EmailAddress string         `json:"emailAddress"`
	FailedLines  map[int]string `json:"failedLines"`
	Error        string         `json:"error"`
	UploadType   string         `json:"uploadType"`
	Filename     string         `json:"filename"`
}

Jump to

Keyboard shortcuts

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