test

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ClientPort = 11224

ClientPort is the default port for clients to connect

View Source
const MonitorPort = 11424

MonitorPort is the default monitor port

Variables

This section is empty.

Functions

func CreateClientConnSubscribeAndPublish

func CreateClientConnSubscribeAndPublish(t *testing.T) *nats.Conn

CreateClientConnSubscribeAndPublish creates a conn and publishes

func RunServer

func RunServer() *server.Server

RunServer runs the NATS server in a go routine

func RunServerWithPorts

func RunServerWithPorts(cport, mport int) *server.Server

RunServerWithPorts runs the NATS server with a monitor port in a go routine

func RunStreamingServer added in v0.2.0

func RunStreamingServer() *nss.StanServer

RunStreamingServer runs the STAN server in a go routine.

func RunStreamingServerWithPorts added in v0.6.0

func RunStreamingServerWithPorts(clusterID string, port, monitorPort int) *nss.StanServer

RunStreamingServerWithPorts runs the STAN server in a go routine allowing the clusterID and ports to be specified..

func RunTestReplicator added in v0.6.0

func RunTestReplicator(monitorPort, natsServerPort1, natsServerPort2 int) (*rcore.NATSReplicator, error)

RunTestReplicator starts an instance of the replicator

Types

This section is empty.

Jump to

Keyboard shortcuts

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