Documentation ¶
Index ¶
Constants ¶
View Source
const IndexHTML = `` /* 1037-byte string literal not displayed */
Variables ¶
View Source
var ServicePort int = 12346
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is an instance of the catcher service. This service is used to test the relay. It exposes an HTTP server that captures the last request it receives and makes it available via the LastRequest() and LastRequestBody() methods. For websocket testing, the /echo endpoint exposes a simple websocket server that echoes back whatever it receives.
func NewService ¶
func NewService() *Service
func (*Service) LastRequestBody ¶
Click to show internal directories.
Click to hide internal directories.