test

package
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(t tLogger, port int) *nats.Conn

NewConnection forms connection on a given port.

func NewDefaultConnection

func NewDefaultConnection(t tLogger) *nats.Conn

NewDefaultConnection

func NewEConn

func NewEConn(t tLogger) *nats.EncodedConn

NewEConn

func RunDefaultServer

func RunDefaultServer() *server.Server

RunDefaultServer will run a server on the default port.

func RunServerOnPort

func RunServerOnPort(port int) *server.Server

RunServerOnPort will run a server on the given port.

func RunServerWithConfig added in v1.1.6

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

RunServerWithConfig will run a server with the given configuration file.

func RunServerWithOptions

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

RunServerWithOptions will run a server with the given options.

func Wait

func Wait(ch chan bool) error

Dumb wait program to sync on callbacks, etc... Will timeout

func WaitTime

func WaitTime(ch chan bool, timeout time.Duration) error

Wait for a chan with a timeout.

Types

type TestLogger added in v1.1.6

type TestLogger tLogger

TestLogger

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL