aws

package
v0.73.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSNSAPI

func CreateSNSAPI(region, endpoint string) (*sns.Client, error)

CreateSNSAPI helper function.

func CreateSNSTopic

func CreateSNSTopic(api SNSAPI, topic string) (string, error)

CreateSNSTopic helper function.

func CreateSQSAPI

func CreateSQSAPI(region, endpoint string) (*sqs.Client, error)

CreateSQSAPI helper function.

func CreateSQSQueue

func CreateSQSQueue(api SQSAPI, queueName string) (string, error)

CreateSQSQueue helper function.

Types

type SNSAPI added in v0.73.0

type SNSAPI interface {
	CreateTopic(ctx context.Context, params *sns.CreateTopicInput, optFns ...func(*sns.Options)) (*sns.CreateTopicOutput, error)
}

type SQSAPI added in v0.73.0

type SQSAPI interface {
	CreateQueue(ctx context.Context, params *sqs.CreateQueueInput, optFns ...func(*sqs.Options)) (*sqs.CreateQueueOutput, error)
	ReceiveMessage(ctx context.Context, params *sqs.ReceiveMessageInput, optFns ...func(*sqs.Options)) (*sqs.ReceiveMessageOutput, error)
}

Jump to

Keyboard shortcuts

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