package test
import "github.com/nats-io/gnatsd/test"
Index ¶
- Constants
- Variables
- func RunDefaultServer() *server.Server
- func RunServer(opts *server.Options) *server.Server
- func RunServerWithAuth(opts *server.Options, auth server.Auth) *server.Server
- func RunServerWithConfig(configFile string) (srv *server.Server, opts *server.Options)
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 RunDefaultServer ¶
func RunServer ¶
New Go Routine based server
func RunServerWithAuth ¶
New Go Routine based server with auth
func RunServerWithConfig ¶
Source Files ¶
- Version
- v0.6.4
- Published
- Aug 8, 2015
- Platform
- darwin/amd64
- Imports
- 12 packages
- Last checked
- 8 minutes ago –
Tools for package owners.