websocketsmocks

package
v1.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebSocketsNamespaced

type WebSocketsNamespaced struct {
	mock.Mock
}

WebSocketsNamespaced is an autogenerated mock type for the WebSocketsNamespaced type

func NewWebSocketsNamespaced

func NewWebSocketsNamespaced(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebSocketsNamespaced

NewWebSocketsNamespaced creates a new instance of WebSocketsNamespaced. 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 (*WebSocketsNamespaced) ServeHTTPNamespaced

func (_m *WebSocketsNamespaced) ServeHTTPNamespaced(namespace string, res http.ResponseWriter, req *http.Request)

ServeHTTPNamespaced provides a mock function with given fields: namespace, res, req

Jump to

Keyboard shortcuts

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