test

package
v0.0.0-...-b61aaf9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 15 Imported by: 0

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 NewGreetApp

func NewGreetApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, tags map[string]string) *TestApp

func NewRouteServiceApp

func NewRouteServiceApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, routeService string) *TestApp

func NewSlowApp

func NewSlowApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, delay time.Duration) *TestApp

func NewStickyApp

func NewStickyApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, tags map[string]string) *TestApp

func NewTestApp

func NewTestApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, tags map[string]string, routeService string) *TestApp

func NewWebSocketApp

func NewWebSocketApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSConn, delay time.Duration) *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) 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