backends

package
v0.0.0-...-9539eb3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MOSQ_ACL_NONE      = 0x00
	MOSQ_ACL_READ      = 0x01
	MOSQ_ACL_WRITE     = 0x02
	MOSQ_ACL_READWRITE = 0x03
	MOSQ_ACL_SUBSCRIBE = 0x04
)

Mosquitto 1.5 introduces a new acc, MOSQ_ACL_SUBSCRIBE. Kept the names, so don't mind the linter. In almost any case, subscribe should be the same as read, except if you want to deny access to # by preventing it on subscribe.

Variables

View Source
var Log = log.New()
View Source
var RegisteredBackends = make(map[string]createFunc)

Functions

This section is empty.

Types

type Backend

type Backend interface {
	GetUser(username, password string) bool
	GetSuperuser(username string) bool
	CheckAcl(username, topic, clientId string, acc int32) bool
	GetName() string
	Halt()
	Reload()
}

Jump to

Keyboard shortcuts

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