broker

package
v0.0.0-...-4050570 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	StartBotSub() error
	StopBotSub() error
	CloseConnection()
	SetWorker(w *bot.BotWorker)
}

type NatsBroker

type NatsBroker struct {
	// contains filtered or unexported fields
}

func NewNatsBroker

func NewNatsBroker(natsURL string, logger *zap.SugaredLogger) (*NatsBroker, error)

func (*NatsBroker) CloseConnection

func (b *NatsBroker) CloseConnection()

func (*NatsBroker) SetWorker

func (b *NatsBroker) SetWorker(w *bot.BotWorker)

func (*NatsBroker) StartBotSub

func (b *NatsBroker) StartBotSub() error

func (*NatsBroker) StopBotSub

func (b *NatsBroker) StopBotSub() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL