test

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRPCServer

func NewRPCServer(t *testing.T, cfg Config) *httptest.Server

NewRPCServer creates and starts a test HTTP server that talks RPC

Types

type Config

type Config struct {
	PubSubPath        string
	SubscriptionsPath string
	RejectConn        bool
	PublishError      bool
	ConsumeError      bool
	ConsumeDrop       bool
}

Jump to

Keyboard shortcuts

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