Documentation ¶ Index ¶ func GetIns() mqtt.Client func Publish(topic string, payload interface{}) error type Server func NewServer() *Server func (s *Server) Close() func (s *Server) Register(name string, handler *commons.CommHandler) func (s *Server) Serve() error 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 Source Files ¶ View all Source files ins.go publish.go subscribe_server.go Click to show internal directories. Click to hide internal directories.