server

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildServer

func BuildServer(opt *Options)

func NewServer

func NewServer(info config.ServerInfo, tlsConfig *tls.Config, server *mqtt.Server, opts Options)

Types

type Options

type Options struct {
	ProtobufMap      map[string]any
	SSLInfo          config.SSLInfo
	Auth             auth.Controller
	Events           event2.Events
	Parsers          map[string]event2.HandleEvent
	Resolvers        map[string]event2.HandleEvent
	Handlers         map[string]event2.CallbackHandler
	ConnTickDuration time.Duration
	OnConnTick       event2.CallbackHandler
}

type Server

type Server struct {
	Opts Options
}

func (*Server) Start

func (s *Server) Start(opt *Options)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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