Documentation ¶
Overview ¶
Package memory provides a message broker using memory.
Index ¶
- type Broker
- func (br *Broker) Close(ctx context.Context) error
- func (br *Broker) Connect() error
- func (br *Broker) HealthCheck() health.CheckFunc
- func (br *Broker) Publish(topic string, m *broker.Message, opts ...broker.PublishOption) error
- func (br *Broker) Subscribe(topic string, h broker.Handler, opts ...broker.SubscribeOption) (broker.Subscriber, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
Broker is a memory message broker.
func (*Broker) HealthCheck ¶
HealthCheck implements broker.Broker interface.
Click to show internal directories.
Click to hide internal directories.