Back to godoc.org

Package common

v0.0.0-...-1e28509
Latest Go to latest

The highest tagged major version is .

Published: Oct 13, 2020 | Licenses: Apache-2.0 , BSD-2-Clause-FreeBSD , BSD-3-Clause , MIT | Module: code.cloudfoundry.org/gorouter

Index

type TestApp

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

func NewTestApp

func NewTestApp(urls []route.Uri, rPort uint16, 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) AppGUID

func (a *TestApp) AppGUID() string

func (*TestApp) CheckAppStatus

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

func (*TestApp) CheckAppStatusWithPath

func (a *TestApp) CheckAppStatusWithPath(status int, path string) 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) RegisterAndListen

func (a *TestApp) RegisterAndListen()

func (*TestApp) RegisterRepeatedly

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

func (*TestApp) TlsListen

func (a *TestApp) TlsListen(tlsConfig *tls.Config) error

func (*TestApp) TlsRegister

func (a *TestApp) TlsRegister(serverCertDomainSAN string)

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)

func (*TestApp) WaitUntilReady

func (a *TestApp) WaitUntilReady()

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier