Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSubscriber ¶
CreateSubscriber creates a new subscriber and returns the status of the creation as bool
func DeleteAllSubscribers ¶
func DeleteAllSubscribers() bool
DeleteAllSubscribers deletes all subscribers' records from database
func GroupSubscribersByTopic ¶
func GroupSubscribersByTopic() map[string][]Subscriber
GroupSubscribersByTopic returns a map of topics each key holding an array of associated subscribers
Types ¶
type Subscriber ¶
Subscriber the struct holding info about each topic subscriber
func FetchAllSubscribers ¶
func FetchAllSubscribers() []Subscriber
FetchAllSubscribers lists all subscribers in the subcribers table
Click to show internal directories.
Click to hide internal directories.