package test

import "github.com/nats-io/gnatsd/test"

Index

Constants

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

Variables

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

Functions

func LoadConfig

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

func RunDefaultServer

func RunDefaultServer() *server.Server

func RunServer

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

New Go Routine based server

func RunServerWithAuth

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

New Go Routine based server with auth

func RunServerWithConfig

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

Source Files

test.go

Version
v0.7.2
Published
Dec 9, 2015
Platform
windows/amd64
Imports
13 packages
Last checked
9 minutes ago

Tools for package owners.