testnats

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Host = "localhost"
)

Variables

This section is empty.

Functions

func MustConnect

func MustConnect(t *testing.T, ctx context.Context, port int) *nats.Conn

func MustRequest

func MustRequest(t *testing.T, ctx context.Context, nc *nats.Conn, path string, payload []byte) *nats.Msg

func MustRunNatsServer

func MustRunNatsServer(t *testing.T, ctx context.Context, port int) *server.Server

func Request

func Request(t *testing.T, ctx context.Context, nc *nats.Conn, path string, payload []byte) (*nats.Msg, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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