Documentation ¶
Index ¶
- Constants
- func CreateClientConnSubscribeAndPublish(t *testing.T) *nats.Conn
- func RunServer() *server.Server
- func RunServerWithPorts(cport, mport int) *server.Server
- func RunStreamingServer() *nss.StanServer
- func RunStreamingServerWithPorts(clusterID string, port, monitorPort int) *nss.StanServer
- func RunTestReplicator(monitorPort, natsServerPort1, natsServerPort2 int) (*rcore.NATSReplicator, error)
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 ¶
CreateClientConnSubscribeAndPublish creates a conn and publishes
func RunServerWithPorts ¶
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.
Click to show internal directories.
Click to hide internal directories.