package test
import "github.com/nats-io/gnatsd/test"
Index ¶
- Variables
- func LoadConfig(configFile string) (opts *server.Options)
- func RunDefaultServer() *server.Server
- func RunServer(opts *server.Options) *server.Server
- func RunServerWithConfig(configFile string) (srv *server.Server, opts *server.Options)
Variables ¶
var DefaultTestOptions = server.Options{ Host: "127.0.0.1", Port: 4222, NoLog: true, NoSigs: true, MaxControlLine: 256, }
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 RunServer ¶
RunServer starts a new Go routine based server
func RunServerWithConfig ¶
RunServerWithConfig starts a new Go routine based server with a configuration file.
Source Files ¶
- Version
- v1.4.1 (latest)
- Published
- Feb 7, 2019
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 2 hours ago –
Tools for package owners.