package test

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

Index

Variables

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

DefaultTestOptions are default options for the unit tests.

Functions

func LoadConfig

func LoadConfig(configFile string) (opts *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 RunServer

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

RunServer starts a new Go routine based server

func RunServerWithAuth

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

RunServerWithAuth starts a new Go routine based server with auth

func RunServerWithConfig

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

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

Source Files

test.go

Version
v0.8.1
Published
Jun 9, 2016
Platform
linux/amd64
Imports
13 packages
Last checked
4 hours ago

Tools for package owners.