wsservermocks

package
v1.4.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol added in v1.4.6

type Protocol struct {
	mock.Mock
}

Protocol is an autogenerated mock type for the Protocol type

func NewProtocol added in v1.4.6

func NewProtocol(t interface {
	mock.TestingT
	Cleanup(func())
}) *Protocol

NewProtocol creates a new instance of Protocol. 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 (*Protocol) Broadcast added in v1.4.6

func (_m *Protocol) Broadcast(ctx context.Context, stream string, payload interface{})

Broadcast provides a mock function with given fields: ctx, stream, payload

func (*Protocol) RoundTrip added in v1.4.6

func (_m *Protocol) RoundTrip(ctx context.Context, stream string, payload wsserver.WSBatch) (*wsserver.WebSocketCommandMessage, error)

RoundTrip provides a mock function with given fields: ctx, stream, payload

type WebSocketServer

type WebSocketServer struct {
	mock.Mock
}

WebSocketServer is an autogenerated mock type for the WebSocketServer type

func NewWebSocketServer

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) Broadcast added in v1.4.6

func (_m *WebSocketServer) Broadcast(ctx context.Context, stream string, payload interface{})

Broadcast provides a mock function with given fields: ctx, stream, payload

func (*WebSocketServer) Close

func (_m *WebSocketServer) Close()

Close provides a mock function with given fields:

func (*WebSocketServer) Handler

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

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

func (*WebSocketServer) RoundTrip added in v1.4.6

RoundTrip provides a mock function with given fields: ctx, stream, payload

Jump to

Keyboard shortcuts

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