wsmocks

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 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 WebSocketChannels

type WebSocketChannels struct {
	mock.Mock
}

WebSocketChannels is an autogenerated mock type for the WebSocketChannels type

func NewWebSocketChannels added in v1.2.1

func NewWebSocketChannels(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebSocketChannels

NewWebSocketChannels creates a new instance of WebSocketChannels. 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 (*WebSocketChannels) GetChannels

func (_m *WebSocketChannels) GetChannels(topic string) (chan<- interface{}, chan<- interface{}, <-chan *ws.WebSocketCommandMessageOrError)

GetChannels provides a mock function with given fields: topic

func (*WebSocketChannels) SendReply

func (_m *WebSocketChannels) SendReply(message interface{})

SendReply provides a mock function with given fields: message

type WebSocketServer added in v1.2.4

type WebSocketServer struct {
	mock.Mock
}

WebSocketServer is an autogenerated mock type for the WebSocketServer type

func NewWebSocketServer added in v1.2.4

func NewWebSocketServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebSocketServer

NewWebSocketServer creates a new instance of WebSocketServer. 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 (*WebSocketServer) Close added in v1.2.4

func (_m *WebSocketServer) Close()

Close provides a mock function with given fields:

func (*WebSocketServer) GetChannels added in v1.2.4

func (_m *WebSocketServer) GetChannels(topic string) (chan<- interface{}, chan<- interface{}, <-chan *ws.WebSocketCommandMessageOrError)

GetChannels provides a mock function with given fields: topic

func (*WebSocketServer) Handler added in v1.2.4

func (_m *WebSocketServer) Handler(w http.ResponseWriter, r *http.Request)

Handler provides a mock function with given fields: w, r

func (*WebSocketServer) SendReply added in v1.2.4

func (_m *WebSocketServer) SendReply(message interface{})

SendReply provides a mock function with given fields: message

Jump to

Keyboard shortcuts

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