Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alash3al/go-pubsub
/ functions
Functions
30 in github.com/alash3al/go-pubsub
⨍
Functions
30
◇
Types & classes
4
↓ 5 callers
Method
Subscribe
Subscribe subscribes the specified subscriber "s" to the specified list of topic(s)
broker.go:43
↓ 4 callers
Method
GetID
GetID return the subscriber id
subscriber.go:41
↓ 4 callers
Method
Subscribers
Subscribers Get the subscribers count
broker.go:102
↓ 3 callers
Method
Attach
Attach Create a new subscriber and register it into our main broker
broker.go:28
↓ 3 callers
Method
GetMessages
GetMessages returns a channel of *Message to listen on
subscriber.go:84
↓ 3 callers
Method
GetTopics
GetTopics Returns a slice of topics
broker.go:109
↓ 3 callers
Function
send
(topic string, broker *pubsub.Broker)
example/example2.go:48
↓ 2 callers
Method
Broadcast
Broadcast broadcast the specified payload to all the topic(s) subscribers
broker.go:81
↓ 2 callers
Function
receive
(id string, ch <-chan *pubsub.Message)
example/example.go:61
↓ 1 callers
Method
AddTopic
AddTopic Adds a new topic to the subscriber
subscriber.go:57
↓ 1 callers
Method
GetPayload
GetPayload Get the payload of the current message
message.go:16
↓ 1 callers
Function
NewSubscriber
NewSubscriber returns a new subscriber
subscriber.go:24
↓ 1 callers
Method
RemoveTopic
RemoveTopic Removes a topic from the subscriber
subscriber.go:64
↓ 1 callers
Method
Signal
Signal sends a message to subscriber
subscriber.go:89
↓ 1 callers
Method
Unsubscribe
Unsubscribe Unsubscribe the specified subscriber from the specified topic(s)
broker.go:58
↓ 1 callers
Method
destroy
close the underlying channels/resources
subscriber.go:100
↓ 1 callers
Function
getPrice
()
example/example2.go:44
↓ 1 callers
Function
getPrice
()
example/example.go:47
↓ 1 callers
Function
receive
(id string, ch <-chan *pubsub.Message)
example/example2.go:58
↓ 1 callers
Function
send
(broker *pubsub.Broker)
example/example.go:51
Method
Detach
Detach remove the specified subscriber from the broker
broker.go:72
Method
GetCreatedAt
GetCreatedAt Get the creation time of this message
message.go:21
Method
GetCreatedAt
GetCreatedAt return `time.Time` of the creation time
subscriber.go:49
Method
GetTopic
GetTopic Return the topic of the current message
message.go:11
Method
GetTopics
GetTopics return slice of subscriber topics
subscriber.go:71
Function
NewBroker
NewBroker Create new broker
broker.go:18
Function
init
()
example/example2.go:12
Function
init
()
example/example.go:12
Function
main
()
example/example2.go:16
Function
main
()
example/example.go:16