test

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestURL             = "nats://127.0.0.1:4222"
	TestURLWithPassword = "nats://admin:supersecret@127.0.0.1:4223" //nolint:gosec // test creds
	TestURLWithToken    = "nats://s3cr3t@127.0.0.1:4224"            //nolint:gosec // test creds
	TestURLWithNKey     = "nats://127.0.0.1:4225"
)

TestURL is a URL of a test NATS server.

Functions

func GetTestConnection

func GetTestConnection(url string) (*nats.Conn, error)

GetTestConnection returns a connection to a test NATS server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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