Documentation ¶
Overview ¶
Package memory provides a message broker using memory.
Index ¶
- Variables
- type Broker
- func (br *Broker) CheckHealth(ctx context.Context) error
- func (br *Broker) Close(ctx context.Context) error
- func (br *Broker) Open(ctx context.Context) error
- func (br *Broker) Publish(ctx context.Context, topic string, m *broker.Message, ...) error
- func (br *Broker) Subscribe(ctx context.Context, topic string, h broker.Handler, ...) (broker.Subscriber, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidConnectionState indicate that the connection has not been opened properly. ErrInvalidConnectionState = errors.New("invalid connection state") )
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker is a memory message broker.
func (*Broker) CheckHealth ¶
CheckHealth implements health.Checker interface.
Click to show internal directories.
Click to hide internal directories.