mqtts

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIns

func GetIns() mqtt.Client

func Publish

func Publish(topic string, payload interface{}) error

Types

type Server

type Server struct {
	Logger       *slog.Logger
	Parallel     bool //并行处理
	SubscribeQos byte
	// contains filtered or unexported fields
}

func NewServer

func NewServer() *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) Register

func (s *Server) Register(name string, handler *commons.CommHandler)

func (*Server) Serve

func (s *Server) Serve() error

Jump to

Keyboard shortcuts

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