broker

package
v0.0.0-...-8003aab Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClosePrevConnection

func ClosePrevConnection(clientID string)

Types

type Broker

type Broker struct {
	Config  *config.Config
	Clients sync.Map
}

Broker store broker info

var RunningBroker *Broker

func NewBroker

func NewBroker(config *config.Config) (*Broker, error)

NewBroker initialize broker

func (*Broker) Start

func (b *Broker) Start()

type Client

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

Jump to

Keyboard shortcuts

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