stubs

package
v0.0.0-...-afe3fbd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL