test

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SUB_INDEX   = 1
	SID_INDEX   = 2
	REPLY_INDEX = 4
	LEN_INDEX   = 5
	MSG_INDEX   = 6
)
View Source
const CONNECT_F = "CONNECT {\"verbose\":false,\"user\":\"%s\",\"pass\":\"%s\",\"name\":\"%s\"}\r\n"

Variables

View Source
var DefaultTestOptions = server.Options{
	Host:   "localhost",
	Port:   4222,
	NoLog:  true,
	NoSigs: true,
}

Functions

func LoadConfig added in v0.7.2

func LoadConfig(configFile string) (opts *server.Options)

func RunDefaultServer added in v0.6.2

func RunDefaultServer() *server.Server

func RunServer

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

New Go Routine based server

func RunServerWithAuth added in v0.6.0

func RunServerWithAuth(opts *server.Options, auth server.Auth) *server.Server

New Go Routine based server with auth

func RunServerWithConfig added in v0.6.2

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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