test

package
v0.0.0-...-8b43ef2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2014 License: Apache-2.0, BSD-2-Clause-Views, BSD-3-Clause, + 1 more Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	VcapBackendHeader = "X-Vcap-Backend"
	VcapRouterHeader  = "X-Vcap-Router"
	VcapTraceHeader   = "X-Vcap-Trace"

	VcapCookieId    = "__VCAP_ID__"
	StickyCookieKey = "JSESSIONID"
)

Types imported from router

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.NATSClient, tags map[string]string) *TestApp

func NewSlowApp

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

func NewStickyApp

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

func NewTestApp

func NewTestApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSClient, tags map[string]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) 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, c *C)

Jump to

Keyboard shortcuts

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