mockws

package
v0.9.19 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 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 added in v0.9.9

type WebSocketChannels struct {
	mock.Mock
}

WebSocketChannels is an autogenerated mock type for the WebSocketChannels type

func NewWebSocketChannels added in v0.9.18

func NewWebSocketChannels(t mockConstructorTestingTNewWebSocketChannels) *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.

func (*WebSocketChannels) GetChannels added in v0.9.9

func (_m *WebSocketChannels) GetChannels(topic string) (chan<- interface{}, chan<- interface{}, <-chan error, <-chan struct{})

GetChannels provides a mock function with given fields: topic

func (*WebSocketChannels) SendReply added in v0.9.9

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

SendReply provides a mock function with given fields: message

type WebSocketServer

type WebSocketServer struct {
	mock.Mock
}

WebSocketServer is an autogenerated mock type for the WebSocketServer type

func NewWebSocketServer added in v0.9.18

func NewWebSocketServer(t mockConstructorTestingTNewWebSocketServer) *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.

func (*WebSocketServer) Close

func (_m *WebSocketServer) Close()

Close provides a mock function with given fields:

func (*WebSocketServer) GetChannels

func (_m *WebSocketServer) GetChannels(topic string) (chan<- interface{}, chan<- interface{}, <-chan error, <-chan struct{})

GetChannels provides a mock function with given fields: topic

func (*WebSocketServer) NewConnection

func (_m *WebSocketServer) NewConnection(w http.ResponseWriter, r *http.Request, p httprouter.Params)

NewConnection provides a mock function with given fields: w, r, p

func (*WebSocketServer) SendReply

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