mock

package
v0.0.0-...-2aa8555 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConnd

type MockConnd struct {
	Config *conf.Connd
	// contains filtered or unexported fields
}

func NewMockConnd

func NewMockConnd(t *testing.T, etcdAddrs []string, opts ...Opt) *MockConnd

func (*MockConnd) MQTTAddr

func (c *MockConnd) MQTTAddr() []string

func (*MockConnd) Start

func (c *MockConnd) Start(t *testing.T)

func (*MockConnd) Stop

func (c *MockConnd) Stop(t *testing.T)

type Opt

type Opt func(conf *conf.Connd)

func SetAuth

func SetAuth(auth string) Opt

func SetServerAddr

func SetServerAddr(addr string) Opt

Jump to

Keyboard shortcuts

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