Documentation ¶ Index ¶ type Nats func InitConnection(natsAddress, username, password string, logger logger.Logger) Nats func (r Nats) GetNatsClient() *nats.Conn func (r Nats) Publish(subject string, body []byte) error func (r Nats) RegisterHandlerConsumerGroup(subject, groupId string, workerCount int, cb nats.MsgHandler) error 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 } func InitConnection ¶ func InitConnection(natsAddress, username, password string, logger logger.Logger) Nats func (Nats) GetNatsClient ¶ func (r Nats) GetNatsClient() *nats.Conn func (Nats) Publish ¶ func (r Nats) Publish(subject string, body []byte) error func (Nats) RegisterHandlerConsumerGroup ¶ func (r Nats) RegisterHandlerConsumerGroup(subject, groupId string, workerCount int, cb nats.MsgHandler) error Source Files ¶ View all Source files init.go nats.go Click to show internal directories. Click to hide internal directories.