Documentation
¶
Index ¶
- func TestTcp(done <-chan bool) (string, <-chan string)
- func TestUdp(done <-chan bool) (string, <-chan string)
- type NginxApp
- type TcpApp
- func (a *TcpApp) AppGUID() string
- func (a *TcpApp) Endpoint() string
- func (a *TcpApp) Listen() error
- func (a *TcpApp) Port() uint16
- func (a *TcpApp) Register()
- func (a *TcpApp) RegisterAndListen()
- func (a *TcpApp) SetHandlers(handlers []func(conn *test_util.HttpConn))
- func (a *TcpApp) SetRouteService(routeService string)
- func (a *TcpApp) Stop()
- func (a *TcpApp) TlsRegister(serverCertDomainSAN string)
- func (a *TcpApp) TlsRegisterWithIndex(serverCertDomainSAN string, index int)
- func (a *TcpApp) Unregister()
- func (a *TcpApp) Urls() []route.Uri
- type TestApp
- func (a *TestApp) AddHandler(path string, handler func(http.ResponseWriter, *http.Request))
- func (a *TestApp) AppGUID() string
- func (a *TestApp) CheckAppStatus(status int) error
- func (a *TestApp) CheckAppStatusWithPath(status int, path string) error
- func (a *TestApp) Endpoint() string
- func (a *TestApp) Listen()
- func (a *TestApp) Port() uint16
- func (a *TestApp) Register()
- func (a *TestApp) RegisterAndListen()
- func (a *TestApp) RegisterRepeatedly(duration time.Duration)
- func (a *TestApp) SetRouteService(routeService string)
- func (a *TestApp) Stop()
- func (a *TestApp) TlsListen(tlsConfig *tls.Config) chan error
- func (a *TestApp) TlsRegister(serverCertDomainSAN string)
- func (a *TestApp) TlsRegisterWithIndex(serverCertDomainSAN string, index int)
- func (a *TestApp) Unregister()
- func (a *TestApp) Urls() []route.Uri
- func (a *TestApp) VerifyAppStatus(status int)
- func (a *TestApp) WaitUntilReady()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestTcp ¶
TestTcp sets up a TCP listener which accepts the first connection and reads individual lines sent over it into the returned channel. The channel is buffered. The listen address is returned as well.
Types ¶
type NginxApp ¶
type NginxApp struct {
GUID string
// contains filtered or unexported fields
}
func NewNginxApp ¶
type TcpApp ¶
type TcpApp struct {
GUID string
// contains filtered or unexported fields
}
func NewTcpApp ¶
func (*TcpApp) SetHandlers ¶
func (*TcpApp) TlsRegisterWithIndex ¶
Source Files
¶
- app.go
- network.go
- nginx_app.go
- tcp_app.go
Click to show internal directories.
Click to hide internal directories.