Documentation ¶
Index ¶
- type ConfigNats
- type Item
- type Nats
- func (db *Nats) Down() error
- func (db *Nats) PubSub(subject, queue string, cb func([]byte) ([]byte, error)) error
- func (db *Nats) Publish(subject string, v interface{}) error
- func (db *Nats) Request(subject string, in, out interface{}, timeouts int) error
- func (db *Nats) Subscribe(subject, queue string, cb interface{}) error
- func (db *Nats) SubscribeWithContext(ctx context.Context, subject, queue string, cb interface{}) error
- func (db *Nats) Up() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigNats ¶
type ConfigNats struct {
Conn []Item `yaml:"nats"`
}
Click to show internal directories.
Click to hide internal directories.