mock_websocket

package
v0.0.0-...-7ff62be Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mock_websocket is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthorizer

type MockAuthorizer struct {
	// contains filtered or unexported fields
}

MockAuthorizer is a mock of Authorizer interface.

func NewMockAuthorizer

func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer

NewMockAuthorizer creates a new mock instance.

func (*MockAuthorizer) AddGroup

func (m *MockAuthorizer) AddGroup(arg0 string, arg1 []string, arg2 websocket.GroupCheckExists) error

AddGroup mocks base method.

func (*MockAuthorizer) AddRoom

func (m *MockAuthorizer) AddRoom(arg0 string, arg1 []string) error

AddRoom mocks base method.

func (*MockAuthorizer) Authenticate

func (m *MockAuthorizer) Authenticate(arg0 context.Context, arg1 string) (string, error)

Authenticate mocks base method.

func (*MockAuthorizer) Authorize

func (m *MockAuthorizer) Authorize(arg0 context.Context, arg1, arg2 string) (bool, error)

Authorize mocks base method.

func (*MockAuthorizer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockAuthorizer) GetGroupIds

func (m *MockAuthorizer) GetGroupIds(arg0 string) []string

GetGroupIds mocks base method.

func (*MockAuthorizer) RemoveGroupRoom

func (m *MockAuthorizer) RemoveGroupRoom(arg0, arg1 string) error

RemoveGroupRoom mocks base method.

type MockAuthorizerMockRecorder

type MockAuthorizerMockRecorder struct {
	// contains filtered or unexported fields
}

MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.

func (*MockAuthorizerMockRecorder) AddGroup

func (mr *MockAuthorizerMockRecorder) AddGroup(arg0, arg1, arg2 interface{}) *gomock.Call

AddGroup indicates an expected call of AddGroup.

func (*MockAuthorizerMockRecorder) AddRoom

func (mr *MockAuthorizerMockRecorder) AddRoom(arg0, arg1 interface{}) *gomock.Call

AddRoom indicates an expected call of AddRoom.

func (*MockAuthorizerMockRecorder) Authenticate

func (mr *MockAuthorizerMockRecorder) Authenticate(arg0, arg1 interface{}) *gomock.Call

Authenticate indicates an expected call of Authenticate.

func (*MockAuthorizerMockRecorder) Authorize

func (mr *MockAuthorizerMockRecorder) Authorize(arg0, arg1, arg2 interface{}) *gomock.Call

Authorize indicates an expected call of Authorize.

func (*MockAuthorizerMockRecorder) GetGroupIds

func (mr *MockAuthorizerMockRecorder) GetGroupIds(arg0 interface{}) *gomock.Call

GetGroupIds indicates an expected call of GetGroupIds.

func (*MockAuthorizerMockRecorder) RemoveGroupRoom

func (mr *MockAuthorizerMockRecorder) RemoveGroupRoom(arg0, arg1 interface{}) *gomock.Call

RemoveGroupRoom indicates an expected call of RemoveGroupRoom.

type MockConnection

type MockConnection struct {
	// contains filtered or unexported fields
}

MockConnection is a mock of Connection interface.

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance.

func (*MockConnection) Close

func (m *MockConnection) Close() error

Close mocks base method.

func (*MockConnection) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConnection) ReadJSON

func (m *MockConnection) ReadJSON(arg0 interface{}) error

ReadJSON mocks base method.

func (*MockConnection) RemoteAddr

func (m *MockConnection) RemoteAddr() net.Addr

RemoteAddr mocks base method.

func (*MockConnection) SetPongHandler

func (m *MockConnection) SetPongHandler(arg0 func(string) error)

SetPongHandler mocks base method.

func (*MockConnection) SetReadDeadline

func (m *MockConnection) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method.

func (*MockConnection) WriteControl

func (m *MockConnection) WriteControl(arg0 int, arg1 []byte, arg2 time.Time) error

WriteControl mocks base method.

func (*MockConnection) WriteJSON

func (m *MockConnection) WriteJSON(arg0 interface{}) error

WriteJSON mocks base method.

type MockConnectionMockRecorder

type MockConnectionMockRecorder struct {
	// contains filtered or unexported fields
}

MockConnectionMockRecorder is the mock recorder for MockConnection.

func (*MockConnectionMockRecorder) Close

func (mr *MockConnectionMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockConnectionMockRecorder) ReadJSON

func (mr *MockConnectionMockRecorder) ReadJSON(arg0 interface{}) *gomock.Call

ReadJSON indicates an expected call of ReadJSON.

func (*MockConnectionMockRecorder) RemoteAddr

func (mr *MockConnectionMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr.

func (*MockConnectionMockRecorder) SetPongHandler

func (mr *MockConnectionMockRecorder) SetPongHandler(arg0 interface{}) *gomock.Call

SetPongHandler indicates an expected call of SetPongHandler.

func (*MockConnectionMockRecorder) SetReadDeadline

func (mr *MockConnectionMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockConnectionMockRecorder) WriteControl

func (mr *MockConnectionMockRecorder) WriteControl(arg0, arg1, arg2 interface{}) *gomock.Call

WriteControl indicates an expected call of WriteControl.

func (*MockConnectionMockRecorder) WriteJSON

func (mr *MockConnectionMockRecorder) WriteJSON(arg0 interface{}) *gomock.Call

WriteJSON indicates an expected call of WriteJSON.

type MockHub

type MockHub struct {
	// contains filtered or unexported fields
}

MockHub is a mock of Hub interface.

func NewMockHub

func NewMockHub(ctrl *gomock.Controller) *MockHub

NewMockHub creates a new mock instance.

func (*MockHub) CloseGroupRoom

func (m *MockHub) CloseGroupRoom(arg0, arg1 string) error

CloseGroupRoom mocks base method.

func (*MockHub) CloseGroupRoomAndNotify

func (m *MockHub) CloseGroupRoomAndNotify(arg0, arg1 string) error

CloseGroupRoomAndNotify mocks base method.

func (*MockHub) Connect

func (m *MockHub) Connect(arg0 http.ResponseWriter, arg1 *http.Request) error

Connect mocks base method.

func (*MockHub) EXPECT

func (m *MockHub) EXPECT() *MockHubMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHub) GetConnectedGroupIds

func (m *MockHub) GetConnectedGroupIds(arg0 string) []string

GetConnectedGroupIds mocks base method.

func (*MockHub) GetConnections

func (m *MockHub) GetConnections() []websocket.UserConnection

GetConnections mocks base method.

func (*MockHub) GetGroupIds

func (m *MockHub) GetGroupIds(arg0 string) []string

GetGroupIds mocks base method.

func (*MockHub) GetUserTokens

func (m *MockHub) GetUserTokens() []string

GetUserTokens mocks base method.

func (*MockHub) RegisterGroup

func (m *MockHub) RegisterGroup(arg0 string, arg1 websocket.GroupParameters, arg2 ...string) error

RegisterGroup mocks base method.

func (*MockHub) RegisterRoom

func (m *MockHub) RegisterRoom(arg0 string, arg1 ...string) error

RegisterRoom mocks base method.

func (*MockHub) Send

func (m *MockHub) Send(arg0 string, arg1 interface{})

Send mocks base method.

func (*MockHub) SendGroupRoom

func (m *MockHub) SendGroupRoom(arg0, arg1 string, arg2 interface{})

SendGroupRoom mocks base method.

func (*MockHub) SendGroupRoomByConnections

func (m *MockHub) SendGroupRoomByConnections(arg0 []string, arg1, arg2 string, arg3 interface{})

SendGroupRoomByConnections mocks base method.

func (*MockHub) Start

func (m *MockHub) Start(arg0 context.Context)

Start mocks base method.

type MockHubMockRecorder

type MockHubMockRecorder struct {
	// contains filtered or unexported fields
}

MockHubMockRecorder is the mock recorder for MockHub.

func (*MockHubMockRecorder) CloseGroupRoom

func (mr *MockHubMockRecorder) CloseGroupRoom(arg0, arg1 interface{}) *gomock.Call

CloseGroupRoom indicates an expected call of CloseGroupRoom.

func (*MockHubMockRecorder) CloseGroupRoomAndNotify

func (mr *MockHubMockRecorder) CloseGroupRoomAndNotify(arg0, arg1 interface{}) *gomock.Call

CloseGroupRoomAndNotify indicates an expected call of CloseGroupRoomAndNotify.

func (*MockHubMockRecorder) Connect

func (mr *MockHubMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call

Connect indicates an expected call of Connect.

func (*MockHubMockRecorder) GetConnectedGroupIds

func (mr *MockHubMockRecorder) GetConnectedGroupIds(arg0 interface{}) *gomock.Call

GetConnectedGroupIds indicates an expected call of GetConnectedGroupIds.

func (*MockHubMockRecorder) GetConnections

func (mr *MockHubMockRecorder) GetConnections() *gomock.Call

GetConnections indicates an expected call of GetConnections.

func (*MockHubMockRecorder) GetGroupIds

func (mr *MockHubMockRecorder) GetGroupIds(arg0 interface{}) *gomock.Call

GetGroupIds indicates an expected call of GetGroupIds.

func (*MockHubMockRecorder) GetUserTokens

func (mr *MockHubMockRecorder) GetUserTokens() *gomock.Call

GetUserTokens indicates an expected call of GetUserTokens.

func (*MockHubMockRecorder) RegisterGroup

func (mr *MockHubMockRecorder) RegisterGroup(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

RegisterGroup indicates an expected call of RegisterGroup.

func (*MockHubMockRecorder) RegisterRoom

func (mr *MockHubMockRecorder) RegisterRoom(arg0 interface{}, arg1 ...interface{}) *gomock.Call

RegisterRoom indicates an expected call of RegisterRoom.

func (*MockHubMockRecorder) Send

func (mr *MockHubMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call

Send indicates an expected call of Send.

func (*MockHubMockRecorder) SendGroupRoom

func (mr *MockHubMockRecorder) SendGroupRoom(arg0, arg1, arg2 interface{}) *gomock.Call

SendGroupRoom indicates an expected call of SendGroupRoom.

func (*MockHubMockRecorder) SendGroupRoomByConnections

func (mr *MockHubMockRecorder) SendGroupRoomByConnections(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

SendGroupRoomByConnections indicates an expected call of SendGroupRoomByConnections.

func (*MockHubMockRecorder) Start

func (mr *MockHubMockRecorder) Start(arg0 interface{}) *gomock.Call

Start indicates an expected call of Start.

type MockUpgrader

type MockUpgrader struct {
	// contains filtered or unexported fields
}

MockUpgrader is a mock of Upgrader interface.

func NewMockUpgrader

func NewMockUpgrader(ctrl *gomock.Controller) *MockUpgrader

NewMockUpgrader creates a new mock instance.

func (*MockUpgrader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUpgrader) Upgrade

func (m *MockUpgrader) Upgrade(arg0 http.ResponseWriter, arg1 *http.Request, arg2 http.Header) (websocket.Connection, error)

Upgrade mocks base method.

type MockUpgraderMockRecorder

type MockUpgraderMockRecorder struct {
	// contains filtered or unexported fields
}

MockUpgraderMockRecorder is the mock recorder for MockUpgrader.

func (*MockUpgraderMockRecorder) Upgrade

func (mr *MockUpgraderMockRecorder) Upgrade(arg0, arg1, arg2 interface{}) *gomock.Call

Upgrade indicates an expected call of Upgrade.

Jump to

Keyboard shortcuts

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