MCPcopy
hub / github.com/nats-io/nats.go / RunDefaultServer

Function RunDefaultServer

jetstream/test/helper_test.go:90–92  ·  view source on GitHub ↗

Running nats server in separate Go routines RunDefaultServer will run a server on the default port.

()

Source from the content-addressed store, hash-verified

88
89// RunDefaultServer will run a server on the default port.
90func RunDefaultServer() *server.Server {
91 return RunServerOnPort(nats.DefaultPort)
92}
93
94// RunServerOnPort will run a server on the given port.
95func RunServerOnPort(port int) *server.Server {

Callers 1

TestAccountInfoFunction · 0.70

Calls 1

RunServerOnPortFunction · 0.70

Tested by

no test coverage detected