Documentation ¶
Overview ¶
Package nats provide a message broker using NATS.
Index ¶
- type JSONCodec
- type Nats
- func (n *Nats) CheckHealth(ctx context.Context) error
- func (n *Nats) Close(ctx context.Context) error
- func (n *Nats) Open(ctx context.Context) error
- func (n *Nats) Publish(ctx context.Context, topic string, m *broker.Message, ...) error
- func (n *Nats) Subscribe(ctx context.Context, topic string, h broker.Handler, ...) (broker.Subscriber, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nats ¶
type Nats struct {
// contains filtered or unexported fields
}
Nats is an implementation of broker.Broker using NATS.
func (*Nats) CheckHealth ¶
CheckHealth implements health.Checker.
Click to show internal directories.
Click to hide internal directories.