Documentation
¶
Index ¶
- Constants
- type DataToPublish
- type TopicManager
- func (tm *TopicManager) CreateTopic(topicName string) string
- func (tm *TopicManager) DeleteTopic(topicArn string) bool
- func (tm *TopicManager) ListTopics(offset int) ([]string, int)
- func (tm *TopicManager) Publish(data *DataToPublish)
- func (tm *TopicManager) Subscribe(topicArn, protocol, endpoint string) string
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 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
Click to show internal directories.
Click to hide internal directories.