test

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncHandler

func SyncHandler() (chan<- message.HandlerFunc, message.Handler)

Types

type Env

type Env struct {
	T      *testing.T
	Broker *message.Broker
	// contains filtered or unexported fields
}

func NewEnv

func NewEnv(t *testing.T) *Env

func (*Env) Close

func (a *Env) Close()

func (*Env) CloseClient

func (a *Env) CloseClient(client *message.Broker) error

func (*Env) Register

func (a *Env) Register(funcs ...message.New)

func (*Env) Start

func (a *Env) Start()

func (*Env) StartClient

func (a *Env) StartClient(client *message.Broker) (*message.Conn, error)

Jump to

Keyboard shortcuts

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