tmgr

package
v0.0.0-...-bcdc46a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ReturnBatchSize = 5
View Source
const TopicDataPrefix = ":tdata:"
View Source
const TopicListPrefix = ":tlist:"

Variables

This section is empty.

Functions

This section is empty.

Types

type DataToPublish

type DataToPublish struct {
	TopicArn          string
	TargetArn         string
	Message           string
	Subject           string
	MessageStructure  string
	MessageAttributes map[string]map[string]string
}

type TopicManager

type TopicManager struct {
	sync.Mutex
	Topics     map[string]*dbdata.Topic
	TargetArns map[string]*dbdata.Subscription
	TopicList  []string
}

func TM

func TM() *TopicManager

func (*TopicManager) CreateTopic

func (tm *TopicManager) CreateTopic(topicName string) string

func (*TopicManager) DeleteTopic

func (tm *TopicManager) DeleteTopic(topicArn string) bool

func (*TopicManager) ListTopics

func (tm *TopicManager) ListTopics(offset int) ([]string, int)

func (*TopicManager) Publish

func (tm *TopicManager) Publish(data *DataToPublish)

func (*TopicManager) Subscribe

func (tm *TopicManager) Subscribe(topicArn, protocol, endpoint string) string

Jump to

Keyboard shortcuts

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