Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataChannel ¶
type DataChannel <-chan DataEvent
DataChannel is a channel which can accept an DataEvent
type PublishSubscriber ¶
type PublishSubscriber struct {
// contains filtered or unexported fields
}
PublishSubscriber stores the information about subscribers interested for a particular topic
func New ¶
func New() *PublishSubscriber
func (*PublishSubscriber) Close ¶
func (eb *PublishSubscriber) Close()
func (*PublishSubscriber) Publish ¶
func (eb *PublishSubscriber) Publish(topic string, data interface{})
func (*PublishSubscriber) Subscribe ¶
func (eb *PublishSubscriber) Subscribe(ctx context.Context, topic string) DataChannel
Click to show internal directories.
Click to hide internal directories.