vernemq

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscription

type Subscription struct {
	ClientId string `json:"client_id"`
	User     string `json:"user"`
	Topic    string `json:"topic"`
	IsOnline bool   `json:"is_online"`
}

type SubscriptionWrapper

type SubscriptionWrapper struct {
	Table []Subscription `json:"table"`
}

type Vernemq

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

func New

func New(config configuration.Config, metrics *prometheus.Metrics) *Vernemq

func (*Vernemq) CheckClient

func (this *Vernemq) CheckClient(clientId string) (onlineClientExists bool, err error)

func (*Vernemq) CheckTopic

func (this *Vernemq) CheckTopic(topic string) (result bool, err error)

Jump to

Keyboard shortcuts

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