common

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestApp

type TestApp struct {
	// contains filtered or unexported fields
}

func NewTestApp

func NewTestApp(
	urls []route.Uri,
	mbusClient *nats.Conn,
	tags map[string]string,
	routeService string,
) *TestApp

func (*TestApp) AddHandler

func (a *TestApp) AddHandler(path string, handler func(http.ResponseWriter, *http.Request))

func (*TestApp) CheckAppStatus

func (a *TestApp) CheckAppStatus(status int) error

func (*TestApp) Endpoint

func (a *TestApp) Endpoint() string

func (*TestApp) Listen

func (a *TestApp) Listen()

func (*TestApp) Port

func (a *TestApp) Port() uint16

func (*TestApp) Register

func (a *TestApp) Register()

func (*TestApp) RegisterRepeatedly

func (a *TestApp) RegisterRepeatedly(duration time.Duration)

func (*TestApp) Unregister

func (a *TestApp) Unregister()

func (*TestApp) Urls

func (a *TestApp) Urls() []route.Uri

func (*TestApp) VerifyAppStatus

func (a *TestApp) VerifyAppStatus(status int)

Jump to

Keyboard shortcuts

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