Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseStub = &responseStub{ actionRes: map[string]func(reqData map[string]interface{}) map[string]interface{}{ "notification/subscribe": notificationSubscribe, }, }
Functions ¶
This section is empty.
Types ¶
type HTTPTestServer ¶
type HTTPTestServer struct {
// contains filtered or unexported fields
}
func StartHTTPTestServer ¶
func StartHTTPTestServer() (srv *HTTPTestServer, addr string)
func (*HTTPTestServer) Close ¶
func (s *HTTPTestServer) Close()
func (*HTTPTestServer) SetRequestHandler ¶
func (s *HTTPTestServer) SetRequestHandler(h httpRequestHandler)
func (*HTTPTestServer) Start ¶
func (s *HTTPTestServer) Start() (srvAddr string)
type WSTestServer ¶
type WSTestServer struct {
// contains filtered or unexported fields
}
func StartWSTestServer ¶
func StartWSTestServer() (srv *WSTestServer, addr string, closeSrv func())
func (*WSTestServer) Close ¶
func (wss *WSTestServer) Close()
func (*WSTestServer) SetRequestHandler ¶
func (wss *WSTestServer) SetRequestHandler(h wsRequestHandler)
func (*WSTestServer) Start ¶
func (wss *WSTestServer) Start() string
Click to show internal directories.
Click to hide internal directories.