Documentation ¶
Index ¶
- Constants
- type TestApp
- func NewGreetApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSClient, ...) *TestApp
- func NewSlowApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSClient, ...) *TestApp
- func NewStickyApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSClient, ...) *TestApp
- func NewTestApp(urls []route.Uri, rPort uint16, mbusClient yagnats.NATSClient, ...) *TestApp
- func (a *TestApp) AddHandler(path string, handler func(http.ResponseWriter, *http.Request))
- func (a *TestApp) CheckAppStatus(status int) error
- func (a *TestApp) Endpoint() string
- func (a *TestApp) Listen()
- func (a *TestApp) Register()
- func (a *TestApp) Unregister()
- func (a *TestApp) Urls() []route.Uri
- func (a *TestApp) VerifyAppStatus(status int, c *C)
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 NewSlowApp ¶
func NewStickyApp ¶
func NewTestApp ¶
func (*TestApp) AddHandler ¶
func (*TestApp) CheckAppStatus ¶
func (*TestApp) Unregister ¶
func (a *TestApp) Unregister()
func (*TestApp) VerifyAppStatus ¶
Click to show internal directories.
Click to hide internal directories.