broker

package
v3.4.25 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ENV = "IOT_MASTER_BROKER_"

Variables

View Source
var Server *mqtt.Server

Functions

func Close

func Close()

func FromEnv added in v3.3.5

func FromEnv()

func GinHandler added in v3.3.5

func GinHandler(ctx *gin.Context)

func Load added in v3.3.5

func Load() error

func Open

func Open() error

func SetOptions added in v3.3.5

func SetOptions(opts Options)

func Store added in v3.3.5

func Store() error

func ToEnv added in v3.3.5

func ToEnv() []string

Types

type Options

type Options struct {
	Enable bool   `json:"enable"`
	Type   string `json:"type"`
	Addr   string `json:"addr"`
}

func Default

func Default() Options

func GetOptions added in v3.3.5

func GetOptions() Options

Jump to

Keyboard shortcuts

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