package
3.5.2+incompatible
Repository: https://github.com/youngagency/messaging.git
Documentation: pkg.go.dev
# Functions
Multiplex given channels.
NewMessenger returns a new Messenger with given Client code must not modify options.
NewService returns a new initialized service.
# Variables
ErrAlreadyExists is returned by AddSubscription when a subcription on given topic already exists.
ErrNotExists is returned by RemoveHandler when a subscription on given topic does not exists.
ErrStopped is returned when subscription was cancelled by stopping it.
# Structs
Options define how to connect to pub sub.
PubSubMessenger implements Messenger interface.
RawMessage is pub sub message model.
Service is a wrapper around a Messenger that permits to stop and wait to return all subscription and handlers.
No description provided by the author
SubscriptionError is a type that wrap an error and the topic on which it occured Err is nil only if the subscription was canceled.
SubscriptionOptions define how to perform a sub on a topic.
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
Handler is invoked on new messages.