pubsub

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	Publish(topic string, message string, params map[string]any) error
}

type PublisherFactory

type PublisherFactory struct{}

func (PublisherFactory) GetInstance

func (s PublisherFactory) GetInstance(publisherType PublisherType, config any) (Publisher, error)

type PublisherType

type PublisherType string
const (
	SNS PublisherType = "sns"
)

type SNSPublisher

type SNSPublisher struct {
	Client *sns.Client
	// contains filtered or unexported fields
}

func GetSNSPublisher

func GetSNSPublisher(config map[string]string) *SNSPublisher

func (*SNSPublisher) Publish

func (s *SNSPublisher) Publish(topic string, message string, params map[string]any) error

Jump to

Keyboard shortcuts

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