sns

package
v0.15.6 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type SNS

type SNS struct {
	Service snsiface.SNSAPI
	// contains filtered or unexported fields
}

func New

func New(opts ...SNSOption) *SNS

func (*SNS) CreateSubscription

func (s *SNS) CreateSubscription(ctx context.Context, input *sns.SubscribeInput) (*sns.SubscribeOutput, error)

func (*SNS) CreateTopic

func (s *SNS) CreateTopic(ctx context.Context, input *sns.CreateTopicInput) (*sns.CreateTopicOutput, error)

CreateTopic creates an SNS topic

func (*SNS) DeleteTopic

func (s *SNS) DeleteTopic(ctx context.Context, arn string) error

DeleteTopic deletes an SNS topic

type SNSOption

type SNSOption func(*SNS)

func WithCredentials

func WithCredentials(key, secret, token, region string) SNSOption

func WithSession

func WithSession(sess *session.Session) SNSOption

Jump to

Keyboard shortcuts

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