Documentation
¶
Overview ¶
A generic pubsub system built with go channels. Used to communicate different pieces of data across the app. Latest block, stream txs, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pubsub ¶
type Pubsub[Message any] struct { // contains filtered or unexported fields }
func (*Pubsub[Message]) Subscribe ¶
Subscribe subscribes to a specific topic and returns a channel to receive messages.
func (*Pubsub[Message]) Unsubscribe ¶
Unsubscribe removes a subscriber from a topic and closes the channel.
Click to show internal directories.
Click to hide internal directories.