test

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestServerConfig = config.Config{
		MQTT: config.MQTT{
			MaxQueuedMsg: 5,
		},
	}
	TestHooks = server.Hooks{OnMsgDropped: func(ctx context.Context, clientID string, msg *gmqtt.Message, err error) {
		dropMsg[cid] = append(dropMsg[cid], msg)
		dropErr[cid] = err
	}}

	TestClientID = cid
)

Functions

func TestQueue

func TestQueue(t *testing.T, store queue.Store)

Types

type New

type New func(config config.Config, hooks server.Hooks) (server.Persistence, error)

Jump to

Keyboard shortcuts

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