Documentation ¶
Index ¶
- Variables
- func LoadConfig(configFile string) *server.Options
- func RunDefaultServer() *server.Server
- func RunRandClientPortServer() *server.Server
- func RunServer(opts *server.Options) *server.Server
- func RunServerCallback(opts *server.Options, callback func(*server.Server)) *server.Server
- func RunServerWithConfig(configFile string) (srv *server.Server, opts *server.Options)
- func RunServerWithConfigOverrides(configFile string, optsCallback func(*server.Options), ...) (srv *server.Server, opts *server.Options)
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTestOptions = server.Options{ Host: "127.0.0.1", Port: 4222, NoLog: true, NoSigs: true, MaxControlLine: 4096, DisableShortFirstPing: true, }
DefaultTestOptions are default options for the unit tests.
Functions ¶
func LoadConfig ¶
LoadConfig loads a configuration from a filename
func RunDefaultServer ¶
RunDefaultServer starts a new Go routine based server using the default options
func RunRandClientPortServer ¶ added in v2.2.0
func RunServerCallback ¶ added in v2.6.3
func RunServerWithConfig ¶
RunServerWithConfig starts a new Go routine based server with a configuration file.
func RunServerWithConfigOverrides ¶ added in v2.6.3
func RunServerWithConfigOverrides(configFile string, optsCallback func(*server.Options), svrCallback func(*server.Server)) (srv *server.Server, opts *server.Options)
RunServerWithConfigOverrides starts a new Go routine based server with a configuration file, providing a callback to update the options configured.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.