broker

package
v0.0.0-...-7555820 Latest Latest
Warning

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

Go to latest
Published: May 25, 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 {
	StartBot(botId int64, token string) error
	StopBot(botId int64) error
	CloseConnection()
}

type NatsBroker

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

func NewNatsBroker

func NewNatsBroker(natsURL string) (*NatsBroker, error)

func (*NatsBroker) CloseConnection

func (b *NatsBroker) CloseConnection()

func (*NatsBroker) StartBot

func (b *NatsBroker) StartBot(botId int64, token string) error

func (*NatsBroker) StopBot

func (b *NatsBroker) StopBot(botId int64) error

Jump to

Keyboard shortcuts

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