mocks

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

Connection is an autogenerated mock type for the Connection type

func (*Connection) Context

func (_m *Connection) Context() context.Context

Context provides a mock function with given fields:

func (*Connection) Disconnect

func (_m *Connection) Disconnect() error

Disconnect provides a mock function with given fields:

func (*Connection) Emit

func (_m *Connection) Emit(_a0 string, _a1 interface{}) error

Emit provides a mock function with given fields: _a0, _a1

func (*Connection) EmitMessage

func (_m *Connection) EmitMessage(_a0 []byte) error

EmitMessage provides a mock function with given fields: _a0

func (*Connection) Err

func (_m *Connection) Err() error

Err provides a mock function with given fields:

func (*Connection) FireOnError

func (_m *Connection) FireOnError(err error)

FireOnError provides a mock function with given fields: err

func (*Connection) GetValue

func (_m *Connection) GetValue(key string) interface{}

GetValue provides a mock function with given fields: key

func (*Connection) GetValueArrString

func (_m *Connection) GetValueArrString(key string) []string

GetValueArrString provides a mock function with given fields: key

func (*Connection) GetValueInt

func (_m *Connection) GetValueInt(key string) int

GetValueInt provides a mock function with given fields: key

func (*Connection) GetValueString

func (_m *Connection) GetValueString(key string) string

GetValueString provides a mock function with given fields: key

func (*Connection) ID

func (_m *Connection) ID() string

ID provides a mock function with given fields:

func (*Connection) IsJoined

func (_m *Connection) IsJoined(roomName string) bool

IsJoined provides a mock function with given fields: roomName

func (*Connection) Join

func (_m *Connection) Join(_a0 string)

Join provides a mock function with given fields: _a0

func (*Connection) Leave

func (_m *Connection) Leave(_a0 string) bool

Leave provides a mock function with given fields: _a0

func (*Connection) On

func (_m *Connection) On(_a0 string, _a1 websocket.MessageFunc)

On provides a mock function with given fields: _a0, _a1

func (*Connection) OnDisconnect

func (_m *Connection) OnDisconnect(_a0 websocket.DisconnectFunc)

OnDisconnect provides a mock function with given fields: _a0

func (*Connection) OnError

func (_m *Connection) OnError(_a0 websocket.ErrorFunc)

OnError provides a mock function with given fields: _a0

func (*Connection) OnLeave

func (_m *Connection) OnLeave(roomLeaveCb websocket.LeaveRoomFunc)

OnLeave provides a mock function with given fields: roomLeaveCb

func (*Connection) OnMessage

func (_m *Connection) OnMessage(_a0 websocket.NativeMessageFunc)

OnMessage provides a mock function with given fields: _a0

func (*Connection) OnPing

func (_m *Connection) OnPing(_a0 websocket.PingFunc)

OnPing provides a mock function with given fields: _a0

func (*Connection) OnPong

func (_m *Connection) OnPong(_a0 websocket.PongFunc)

OnPong provides a mock function with given fields: _a0

func (*Connection) Server

func (_m *Connection) Server() *websocket.Server

Server provides a mock function with given fields:

func (*Connection) SetValue

func (_m *Connection) SetValue(key string, value interface{})

SetValue provides a mock function with given fields: key, value

func (*Connection) To

func (_m *Connection) To(_a0 string) websocket.Emitter

To provides a mock function with given fields: _a0

func (*Connection) Wait

func (_m *Connection) Wait()

Wait provides a mock function with given fields:

func (*Connection) Write

func (_m *Connection) Write(websocketMessageType int, data []byte) error

Write provides a mock function with given fields: websocketMessageType, data

Jump to

Keyboard shortcuts

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