messaging

package
v0.0.0-...-d3da92b Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message interface {
	MessagingTopic() string
	MessagingHeaders() map[string]string
	proto.Message
}

type SNSAPI

type SNSAPI interface {
	Publish(ctx context.Context, input *sns.PublishInput, optFns ...func(*sns.Options)) (*sns.PublishOutput, error)
}

type SNSPublisher

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

func NewSNSPublisher

func NewSNSPublisher(sns SNSAPI, prefix string) *SNSPublisher

func (*SNSPublisher) Publish

func (p *SNSPublisher) Publish(ctx context.Context, msg Message) error

Jump to

Keyboard shortcuts

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