Documentation
¶
Index ¶
- type WebsocketConnection
- func (_mock *WebsocketConnection) Close() error
- func (_m *WebsocketConnection) EXPECT() *WebsocketConnection_Expecter
- func (_mock *WebsocketConnection) ReadJSON(v interface{}) error
- func (_mock *WebsocketConnection) SetPongHandler(h func(string) error)
- func (_mock *WebsocketConnection) SetReadDeadline(deadline time.Time) error
- func (_mock *WebsocketConnection) SetWriteDeadline(deadline time.Time) error
- func (_mock *WebsocketConnection) WriteControl(messageType int, deadline time.Time) error
- func (_mock *WebsocketConnection) WriteJSON(v interface{}) error
- type WebsocketConnection_Close_Call
- type WebsocketConnection_Expecter
- func (_e *WebsocketConnection_Expecter) Close() *WebsocketConnection_Close_Call
- func (_e *WebsocketConnection_Expecter) ReadJSON(v interface{}) *WebsocketConnection_ReadJSON_Call
- func (_e *WebsocketConnection_Expecter) SetPongHandler(h interface{}) *WebsocketConnection_SetPongHandler_Call
- func (_e *WebsocketConnection_Expecter) SetReadDeadline(deadline interface{}) *WebsocketConnection_SetReadDeadline_Call
- func (_e *WebsocketConnection_Expecter) SetWriteDeadline(deadline interface{}) *WebsocketConnection_SetWriteDeadline_Call
- func (_e *WebsocketConnection_Expecter) WriteControl(messageType interface{}, deadline interface{}) *WebsocketConnection_WriteControl_Call
- func (_e *WebsocketConnection_Expecter) WriteJSON(v interface{}) *WebsocketConnection_WriteJSON_Call
- type WebsocketConnection_ReadJSON_Call
- func (_c *WebsocketConnection_ReadJSON_Call) Return(err error) *WebsocketConnection_ReadJSON_Call
- func (_c *WebsocketConnection_ReadJSON_Call) Run(run func(v interface{})) *WebsocketConnection_ReadJSON_Call
- func (_c *WebsocketConnection_ReadJSON_Call) RunAndReturn(run func(v interface{}) error) *WebsocketConnection_ReadJSON_Call
- type WebsocketConnection_SetPongHandler_Call
- func (_c *WebsocketConnection_SetPongHandler_Call) Return() *WebsocketConnection_SetPongHandler_Call
- func (_c *WebsocketConnection_SetPongHandler_Call) Run(run func(h func(string) error)) *WebsocketConnection_SetPongHandler_Call
- func (_c *WebsocketConnection_SetPongHandler_Call) RunAndReturn(run func(h func(string) error)) *WebsocketConnection_SetPongHandler_Call
- type WebsocketConnection_SetReadDeadline_Call
- func (_c *WebsocketConnection_SetReadDeadline_Call) Return(err error) *WebsocketConnection_SetReadDeadline_Call
- func (_c *WebsocketConnection_SetReadDeadline_Call) Run(run func(deadline time.Time)) *WebsocketConnection_SetReadDeadline_Call
- func (_c *WebsocketConnection_SetReadDeadline_Call) RunAndReturn(run func(deadline time.Time) error) *WebsocketConnection_SetReadDeadline_Call
- type WebsocketConnection_SetWriteDeadline_Call
- func (_c *WebsocketConnection_SetWriteDeadline_Call) Return(err error) *WebsocketConnection_SetWriteDeadline_Call
- func (_c *WebsocketConnection_SetWriteDeadline_Call) Run(run func(deadline time.Time)) *WebsocketConnection_SetWriteDeadline_Call
- func (_c *WebsocketConnection_SetWriteDeadline_Call) RunAndReturn(run func(deadline time.Time) error) *WebsocketConnection_SetWriteDeadline_Call
- type WebsocketConnection_WriteControl_Call
- func (_c *WebsocketConnection_WriteControl_Call) Return(err error) *WebsocketConnection_WriteControl_Call
- func (_c *WebsocketConnection_WriteControl_Call) Run(run func(messageType int, deadline time.Time)) *WebsocketConnection_WriteControl_Call
- func (_c *WebsocketConnection_WriteControl_Call) RunAndReturn(run func(messageType int, deadline time.Time) error) *WebsocketConnection_WriteControl_Call
- type WebsocketConnection_WriteJSON_Call
- func (_c *WebsocketConnection_WriteJSON_Call) Return(err error) *WebsocketConnection_WriteJSON_Call
- func (_c *WebsocketConnection_WriteJSON_Call) Run(run func(v interface{})) *WebsocketConnection_WriteJSON_Call
- func (_c *WebsocketConnection_WriteJSON_Call) RunAndReturn(run func(v interface{}) error) *WebsocketConnection_WriteJSON_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebsocketConnection ¶
WebsocketConnection is an autogenerated mock type for the WebsocketConnection type
func NewWebsocketConnection ¶
func NewWebsocketConnection(t interface {
mock.TestingT
Cleanup(func())
}) *WebsocketConnection
NewWebsocketConnection creates a new instance of WebsocketConnection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*WebsocketConnection) Close ¶
func (_mock *WebsocketConnection) Close() error
Close provides a mock function for the type WebsocketConnection
func (*WebsocketConnection) EXPECT ¶ added in v0.46.0
func (_m *WebsocketConnection) EXPECT() *WebsocketConnection_Expecter
func (*WebsocketConnection) ReadJSON ¶
func (_mock *WebsocketConnection) ReadJSON(v interface{}) error
ReadJSON provides a mock function for the type WebsocketConnection
func (*WebsocketConnection) SetPongHandler ¶
func (_mock *WebsocketConnection) SetPongHandler(h func(string) error)
SetPongHandler provides a mock function for the type WebsocketConnection
func (*WebsocketConnection) SetReadDeadline ¶
func (_mock *WebsocketConnection) SetReadDeadline(deadline time.Time) error
SetReadDeadline provides a mock function for the type WebsocketConnection
func (*WebsocketConnection) SetWriteDeadline ¶
func (_mock *WebsocketConnection) SetWriteDeadline(deadline time.Time) error
SetWriteDeadline provides a mock function for the type WebsocketConnection
func (*WebsocketConnection) WriteControl ¶
func (_mock *WebsocketConnection) WriteControl(messageType int, deadline time.Time) error
WriteControl provides a mock function for the type WebsocketConnection
func (*WebsocketConnection) WriteJSON ¶
func (_mock *WebsocketConnection) WriteJSON(v interface{}) error
WriteJSON provides a mock function for the type WebsocketConnection
type WebsocketConnection_Close_Call ¶ added in v0.46.0
WebsocketConnection_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*WebsocketConnection_Close_Call) Return ¶ added in v0.46.0
func (_c *WebsocketConnection_Close_Call) Return(err error) *WebsocketConnection_Close_Call
func (*WebsocketConnection_Close_Call) Run ¶ added in v0.46.0
func (_c *WebsocketConnection_Close_Call) Run(run func()) *WebsocketConnection_Close_Call
func (*WebsocketConnection_Close_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WebsocketConnection_Close_Call) RunAndReturn(run func() error) *WebsocketConnection_Close_Call
type WebsocketConnection_Expecter ¶ added in v0.46.0
type WebsocketConnection_Expecter struct {
// contains filtered or unexported fields
}
func (*WebsocketConnection_Expecter) Close ¶ added in v0.46.0
func (_e *WebsocketConnection_Expecter) Close() *WebsocketConnection_Close_Call
Close is a helper method to define mock.On call
func (*WebsocketConnection_Expecter) ReadJSON ¶ added in v0.46.0
func (_e *WebsocketConnection_Expecter) ReadJSON(v interface{}) *WebsocketConnection_ReadJSON_Call
ReadJSON is a helper method to define mock.On call
- v interface{}
func (*WebsocketConnection_Expecter) SetPongHandler ¶ added in v0.46.0
func (_e *WebsocketConnection_Expecter) SetPongHandler(h interface{}) *WebsocketConnection_SetPongHandler_Call
SetPongHandler is a helper method to define mock.On call
- h func(string) error
func (*WebsocketConnection_Expecter) SetReadDeadline ¶ added in v0.46.0
func (_e *WebsocketConnection_Expecter) SetReadDeadline(deadline interface{}) *WebsocketConnection_SetReadDeadline_Call
SetReadDeadline is a helper method to define mock.On call
- deadline time.Time
func (*WebsocketConnection_Expecter) SetWriteDeadline ¶ added in v0.46.0
func (_e *WebsocketConnection_Expecter) SetWriteDeadline(deadline interface{}) *WebsocketConnection_SetWriteDeadline_Call
SetWriteDeadline is a helper method to define mock.On call
- deadline time.Time
func (*WebsocketConnection_Expecter) WriteControl ¶ added in v0.46.0
func (_e *WebsocketConnection_Expecter) WriteControl(messageType interface{}, deadline interface{}) *WebsocketConnection_WriteControl_Call
WriteControl is a helper method to define mock.On call
- messageType int
- deadline time.Time
func (*WebsocketConnection_Expecter) WriteJSON ¶ added in v0.46.0
func (_e *WebsocketConnection_Expecter) WriteJSON(v interface{}) *WebsocketConnection_WriteJSON_Call
WriteJSON is a helper method to define mock.On call
- v interface{}
type WebsocketConnection_ReadJSON_Call ¶ added in v0.46.0
WebsocketConnection_ReadJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadJSON'
func (*WebsocketConnection_ReadJSON_Call) Return ¶ added in v0.46.0
func (_c *WebsocketConnection_ReadJSON_Call) Return(err error) *WebsocketConnection_ReadJSON_Call
func (*WebsocketConnection_ReadJSON_Call) Run ¶ added in v0.46.0
func (_c *WebsocketConnection_ReadJSON_Call) Run(run func(v interface{})) *WebsocketConnection_ReadJSON_Call
func (*WebsocketConnection_ReadJSON_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WebsocketConnection_ReadJSON_Call) RunAndReturn(run func(v interface{}) error) *WebsocketConnection_ReadJSON_Call
type WebsocketConnection_SetPongHandler_Call ¶ added in v0.46.0
WebsocketConnection_SetPongHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetPongHandler'
func (*WebsocketConnection_SetPongHandler_Call) Return ¶ added in v0.46.0
func (_c *WebsocketConnection_SetPongHandler_Call) Return() *WebsocketConnection_SetPongHandler_Call
func (*WebsocketConnection_SetPongHandler_Call) Run ¶ added in v0.46.0
func (_c *WebsocketConnection_SetPongHandler_Call) Run(run func(h func(string) error)) *WebsocketConnection_SetPongHandler_Call
func (*WebsocketConnection_SetPongHandler_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WebsocketConnection_SetPongHandler_Call) RunAndReturn(run func(h func(string) error)) *WebsocketConnection_SetPongHandler_Call
type WebsocketConnection_SetReadDeadline_Call ¶ added in v0.46.0
WebsocketConnection_SetReadDeadline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetReadDeadline'
func (*WebsocketConnection_SetReadDeadline_Call) Return ¶ added in v0.46.0
func (_c *WebsocketConnection_SetReadDeadline_Call) Return(err error) *WebsocketConnection_SetReadDeadline_Call
func (*WebsocketConnection_SetReadDeadline_Call) Run ¶ added in v0.46.0
func (_c *WebsocketConnection_SetReadDeadline_Call) Run(run func(deadline time.Time)) *WebsocketConnection_SetReadDeadline_Call
func (*WebsocketConnection_SetReadDeadline_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WebsocketConnection_SetReadDeadline_Call) RunAndReturn(run func(deadline time.Time) error) *WebsocketConnection_SetReadDeadline_Call
type WebsocketConnection_SetWriteDeadline_Call ¶ added in v0.46.0
WebsocketConnection_SetWriteDeadline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetWriteDeadline'
func (*WebsocketConnection_SetWriteDeadline_Call) Return ¶ added in v0.46.0
func (_c *WebsocketConnection_SetWriteDeadline_Call) Return(err error) *WebsocketConnection_SetWriteDeadline_Call
func (*WebsocketConnection_SetWriteDeadline_Call) Run ¶ added in v0.46.0
func (_c *WebsocketConnection_SetWriteDeadline_Call) Run(run func(deadline time.Time)) *WebsocketConnection_SetWriteDeadline_Call
func (*WebsocketConnection_SetWriteDeadline_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WebsocketConnection_SetWriteDeadline_Call) RunAndReturn(run func(deadline time.Time) error) *WebsocketConnection_SetWriteDeadline_Call
type WebsocketConnection_WriteControl_Call ¶ added in v0.46.0
WebsocketConnection_WriteControl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteControl'
func (*WebsocketConnection_WriteControl_Call) Return ¶ added in v0.46.0
func (_c *WebsocketConnection_WriteControl_Call) Return(err error) *WebsocketConnection_WriteControl_Call
func (*WebsocketConnection_WriteControl_Call) Run ¶ added in v0.46.0
func (_c *WebsocketConnection_WriteControl_Call) Run(run func(messageType int, deadline time.Time)) *WebsocketConnection_WriteControl_Call
func (*WebsocketConnection_WriteControl_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WebsocketConnection_WriteControl_Call) RunAndReturn(run func(messageType int, deadline time.Time) error) *WebsocketConnection_WriteControl_Call
type WebsocketConnection_WriteJSON_Call ¶ added in v0.46.0
WebsocketConnection_WriteJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteJSON'
func (*WebsocketConnection_WriteJSON_Call) Return ¶ added in v0.46.0
func (_c *WebsocketConnection_WriteJSON_Call) Return(err error) *WebsocketConnection_WriteJSON_Call
func (*WebsocketConnection_WriteJSON_Call) Run ¶ added in v0.46.0
func (_c *WebsocketConnection_WriteJSON_Call) Run(run func(v interface{})) *WebsocketConnection_WriteJSON_Call
func (*WebsocketConnection_WriteJSON_Call) RunAndReturn ¶ added in v0.46.0
func (_c *WebsocketConnection_WriteJSON_Call) RunAndReturn(run func(v interface{}) error) *WebsocketConnection_WriteJSON_Call