db

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("empty result set")
)

Functions

func CheckAuth

func CheckAuth(login string, pass string) error

TODO use bcrypt to store passwords

func Close

func Close()

func DeleteRetain

func DeleteRetain(topic string, qos int) error

func DeleteSubscription

func DeleteSubscription(id string, topic string) error

func FetchRetain

func FetchRetain() (map[string]*packet.WillMessage, error)

func FetchSubcription

func FetchSubcription(id string) (map[string]int, error)

func Open

func Open(dbName string) error

func SaveRetain

func SaveRetain(topic string, payload string, qos int) error

func SaveSubscription

func SaveSubscription(id string, topic string, qos int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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