Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PublishPoisonMessage ¶ added in v1.0.1
func PublishPoisonMessage(payload Topic, subscriber Subscriber) error
func RetryInternalEvent ¶ added in v1.0.1
func RetryInternalEvent()
func SetGlobalPublisher ¶
func SetGlobalPublisher(publisher *Publisher)
Types ¶
type Publisher ¶
type Publisher struct {
// contains filtered or unexported fields
}
func GetGlobalPublisher ¶
func GetGlobalPublisher() *Publisher
func NewPublisher ¶
func (*Publisher) AttachSubscriber ¶
func (p *Publisher) AttachSubscriber(topic string, sub Subscriber)
type Subscriber ¶
type Subscriber interface {
Subscribe(topic Topic)
}
Click to show internal directories.
Click to hide internal directories.