mock_wsclient

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClientServer

type MockClientServer struct {
	// contains filtered or unexported fields
}

Mock of ClientServer interface

func NewMockClientServer

func NewMockClientServer(ctrl *gomock.Controller) *MockClientServer

func (*MockClientServer) AddRequestHandler

func (_m *MockClientServer) AddRequestHandler(_param0 wsclient.RequestHandler)

func (*MockClientServer) Close

func (_m *MockClientServer) Close() error

func (*MockClientServer) Connect

func (_m *MockClientServer) Connect() error

func (*MockClientServer) Disconnect added in v1.11.1

func (_m *MockClientServer) Disconnect(_param0 ...interface{}) error

func (*MockClientServer) EXPECT

func (_m *MockClientServer) EXPECT() *_MockClientServerRecorder

func (*MockClientServer) IsConnected added in v1.14.1

func (_m *MockClientServer) IsConnected() bool

func (*MockClientServer) MakeRequest

func (_m *MockClientServer) MakeRequest(_param0 interface{}) error

func (*MockClientServer) Serve

func (_m *MockClientServer) Serve() error

func (*MockClientServer) SetAnyRequestHandler added in v1.3.1

func (_m *MockClientServer) SetAnyRequestHandler(_param0 wsclient.RequestHandler)

func (*MockClientServer) SetConnection added in v1.14.1

func (_m *MockClientServer) SetConnection(_param0 wsclient.WebsocketConn)

func (*MockClientServer) SetReadDeadline added in v1.14.5

func (_m *MockClientServer) SetReadDeadline(_param0 time.Time) error

func (*MockClientServer) WriteMessage added in v1.14.1

func (_m *MockClientServer) WriteMessage(_param0 []byte) error

type MockWebsocketConn added in v1.14.4

type MockWebsocketConn struct {
	// contains filtered or unexported fields
}

Mock of WebsocketConn interface

func NewMockWebsocketConn added in v1.14.4

func NewMockWebsocketConn(ctrl *gomock.Controller) *MockWebsocketConn

func (*MockWebsocketConn) Close added in v1.14.4

func (_m *MockWebsocketConn) Close() error

func (*MockWebsocketConn) EXPECT added in v1.14.4

func (_m *MockWebsocketConn) EXPECT() *_MockWebsocketConnRecorder

func (*MockWebsocketConn) ReadMessage added in v1.14.4

func (_m *MockWebsocketConn) ReadMessage() (int, []byte, error)

func (*MockWebsocketConn) SetReadDeadline added in v1.14.5

func (_m *MockWebsocketConn) SetReadDeadline(_param0 time.Time) error

func (*MockWebsocketConn) SetWriteDeadline added in v1.14.5

func (_m *MockWebsocketConn) SetWriteDeadline(_param0 time.Time) error

func (*MockWebsocketConn) WriteMessage added in v1.14.4

func (_m *MockWebsocketConn) WriteMessage(_param0 int, _param1 []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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