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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetServerConfig

func SetServerConfig(path string)

Types

type MockPushd

type MockPushd struct {
	Config *conf.Pushd
	// contains filtered or unexported fields
}

func NewMockPushd

func NewMockPushd(t *testing.T, etcdAddrs []string, opts ...Opt) *MockPushd

func (*MockPushd) CallbackService

func (p *MockPushd) CallbackService() string

func (*MockPushd) ServerAddr

func (p *MockPushd) ServerAddr() string

func (*MockPushd) Start

func (p *MockPushd) Start(t *testing.T)

func (*MockPushd) Stop

func (p *MockPushd) Stop(t *testing.T)

type Opt

type Opt func(conf *conf.Pushd)

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