Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type GMqttServer ¶
type GMqttServer interface {
Run() error
Stop(ctx context.Context) error
Init(opts ...server.Options) error
// SubscriptionStore returns the subscription.Store.
SubscriptionService() server.SubscriptionService
// RetainedStore returns the retained.Store.
RetainedStore() retained.Store
// Publisher returns the Publisher
Publisher() server.Publisher
// client return the ClientService
ClientService() server.ClientService
// GetConfig returns the config of the server
GetConfig() config.Config
// StatsManager returns StatsReader
StatsManager() server.StatsReader
}
GMqttServer ...
type Message ¶
type Message struct {
Dup bool
Qos uint8
Retained bool
Topic string
PacketID uint16
Payload []byte
}
Message ...
type MqttAuthenticator ¶
type MqttAuthenticator interface {
Authenticate(login string, pass interface{}) (err error)
//DEPRECATED
Register(fn func(login, password string) (err error)) (err error)
//DEPRECATED
Unregister(fn func(login, password string) (err error)) (err error)
}
MqttAuthenticator ...
Click to show internal directories.
Click to hide internal directories.