Documentation ¶
Index ¶
- Variables
- func New(ctx context.Context, cfg *configs.Configs) (msgbus.MsgBus, error)
- func NewEvent(msg *nats.Msg) (*entities.Event, error)
- func NewMsg(cfg *configs.Configs, event *entities.Event) (*nats.Msg, error)
- func NewSubject(cfg *configs.Configs, sample *entities.Event) string
- func UseSub(logger *zap.SugaredLogger, fn msgbus.SubscribeFn, backoff []time.Duration) nats.MsgHandler
- type Nats
Constants ¶
This section is empty.
Variables ¶
View Source
var EXIT_CODE_DISCONNECT = 1000
Functions ¶
func UseSub ¶
func UseSub(logger *zap.SugaredLogger, fn msgbus.SubscribeFn, backoff []time.Duration) nats.MsgHandler
Types ¶
type Nats ¶
type Nats struct { Configs *configs.Configs Logger *zap.SugaredLogger // contains filtered or unexported fields }
func (*Nats) Disconnect ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.