package test
import "github.com/nats-io/nats.go/test"
Index ¶
- func NewConnection(t tLogger, port int) *nats.Conn
- func NewDefaultConnection(t tLogger) *nats.Conn
- func NewEConn(t tLogger) *nats.EncodedConn
- func RunDefaultServer() *server.Server
- func RunServerOnPort(port int) *server.Server
- func RunServerWithConfig(configFile string) (*server.Server, *server.Options)
- func RunServerWithOptions(opts server.Options) *server.Server
- func Wait(ch chan bool) error
- func WaitTime(ch chan bool, timeout time.Duration) error
- type TestLogger
Functions ¶
func NewConnection ¶
NewConnection forms connection on a given port.
func NewDefaultConnection ¶
NewDefaultConnection
func NewEConn ¶
func NewEConn(t tLogger) *nats.EncodedConn
NewEConn
func RunDefaultServer ¶
RunDefaultServer will run a server on the default port.
func RunServerOnPort ¶
RunServerOnPort will run a server on the given port.
func RunServerWithConfig ¶
RunServerWithConfig will run a server with the given configuration file.
func RunServerWithOptions ¶
RunServerWithOptions will run a server with the given options.
func Wait ¶
Dumb wait program to sync on callbacks, etc... Will timeout
func WaitTime ¶
Wait for a chan with a timeout.
Types ¶
type TestLogger ¶
type TestLogger tLogger
TestLogger
Source Files ¶
- Version
- v1.2.0
- Published
- May 13, 2016
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 12 minutes ago –
Tools for package owners.