Documentation ¶
Overview ¶
Package spub has some pub sub stuff
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrDuplicateListenerID ¶
type ErrDuplicateListenerID struct {
ListenerID string
}
ErrDuplicateListenerID is returned when you register conflicting listener ids
func (ErrDuplicateListenerID) Error ¶
func (e ErrDuplicateListenerID) Error() string
type ErrListenerWithoutID ¶
type ErrListenerWithoutID struct {
ListenerID string
}
ErrListenerWithoutID is returned when you register a listener without an ID
func (ErrListenerWithoutID) Error ¶
func (e ErrListenerWithoutID) Error() string
type ErrPublishDeadline ¶
ErrPublishDeadline is returned when the message cannot be published due to timeout
func (ErrPublishDeadline) Error ¶
func (e ErrPublishDeadline) Error() string
type ErrShuttingDown ¶
ErrShuttingDown is returned when the message cannot be published due to shutdown
func (ErrShuttingDown) Error ¶
func (e ErrShuttingDown) Error() string
type ErrUnknownListener ¶
ErrUnknownListener is returned when the message cannot be published due to a listener being unknown by ID
func (ErrUnknownListener) Error ¶
func (e ErrUnknownListener) Error() string
type Listener ¶
type Listener struct { ID string C chan []byte Timeout time.Duration // contains filtered or unexported fields }
Listener is a channel to receive bytes from and a context for cancellation
Click to show internal directories.
Click to hide internal directories.