test

package
v2.0.0-...-6e60898 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func LoadConfig(configFile string) *server.Options

LoadConfig loads a configuration from a filename

func RunDefaultServer

func RunDefaultServer() *server.Server

RunDefaultServer starts a new Go routine based server using the default options

func RunRandClientPortServer

func RunRandClientPortServer() *server.Server

func RunServer

func RunServer(opts *server.Options) *server.Server

RunServer starts a new Go routine based server

func RunServerCallback

func RunServerCallback(opts *server.Options, callback func(*server.Server)) *server.Server

func RunServerWithConfig

func RunServerWithConfig(configFile string) (srv *server.Server, opts *server.Options)

RunServerWithConfig starts a new Go routine based server with a configuration file.

func RunServerWithConfigOverrides

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.

Jump to

Keyboard shortcuts

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