Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
func StartBroker ¶
StartBroker creates a new NATS broker listening on a random unused port
type ChoriaNetwork ¶
type ChoriaNetwork struct {
// contains filtered or unexported fields
}
func StartChoriaNetwork ¶
func StartChoriaNetwork(cfg *config.Config) (n *ChoriaNetwork, err error)
StartChoriaNetwork starts a broker anc instance server connect to the broker
func StartTestChoriaNetwork ¶
func StartTestChoriaNetwork(t TestReporter, cfg *config.Config) (n *ChoriaNetwork)
StartTestChoriaNetwork starts a broker and instance server connected to the broker
func (*ChoriaNetwork) ClientURL ¶
func (cn *ChoriaNetwork) ClientURL() string
func (*ChoriaNetwork) ServerInstance ¶
func (cn *ChoriaNetwork) ServerInstance() *server.Instance
func (*ChoriaNetwork) Start ¶
func (cn *ChoriaNetwork) Start() (err error)
func (*ChoriaNetwork) Stop ¶
func (cn *ChoriaNetwork) Stop()
type ChoriaServer ¶
func StartChoriaServer ¶
func StartChoriaServer(b *Broker, cfg *config.Config) (c *ChoriaServer, err error)
StartChoriaServer starts an instance of instance server
func (*ChoriaServer) Start ¶
func (c *ChoriaServer) Start() (err error)
func (*ChoriaServer) Stop ¶
func (c *ChoriaServer) Stop()
type TestReporter ¶ added in v0.21.0
Click to show internal directories.
Click to hide internal directories.