sns

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsSnsClient

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

func NewAwsSnsClient

func NewAwsSnsClient() (*AwsSnsClient, error)

func (*AwsSnsClient) PublishEvent

func (c *AwsSnsClient) PublishEvent(ctx context.Context, topicArn string, event Event) error

type Event

type Event struct {
	EventType string                 `json:"event_type"`
	EventData map[string]interface{} `json:"event_data"`
	Timestamp string                 `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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