Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
func NewPubSub ¶
func NewPubSub(doPublish PubSubHook) *PubSub
func (*PubSub) Receive ¶
func (p *PubSub) Receive(topic string, msg PubSubMessage)
func (*PubSub) Send ¶
func (p *PubSub) Send(topic string, msg PubSubMessage)
type PubSubHook ¶
type PubSubHook func(topic string, msg PubSubMessage) error
type PubSubMessage ¶
type PubSubTopic ¶
type PubSubTopic struct { Sent []PubSubMessage Received []PubSubMessage }
Click to show internal directories.
Click to hide internal directories.