Documentation ¶
Overview ¶
Package mock_websocket is a generated GoMock package.
Index ¶
- type MockAuthorizer
- func (m *MockAuthorizer) AddGroup(arg0 string, arg1 []string, arg2 websocket.GroupCheckExists) error
- func (m *MockAuthorizer) AddRoom(arg0 string, arg1 []string) error
- func (m *MockAuthorizer) Authenticate(arg0 context.Context, arg1 string) (string, error)
- func (m *MockAuthorizer) Authorize(arg0 context.Context, arg1, arg2 string) (bool, error)
- func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
- func (m *MockAuthorizer) GetGroupIds(arg0 string) []string
- func (m *MockAuthorizer) RemoveGroupRoom(arg0, arg1 string) error
- type MockAuthorizerMockRecorder
- func (mr *MockAuthorizerMockRecorder) AddGroup(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAuthorizerMockRecorder) AddRoom(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizerMockRecorder) Authenticate(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAuthorizerMockRecorder) Authorize(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockAuthorizerMockRecorder) GetGroupIds(arg0 interface{}) *gomock.Call
- func (mr *MockAuthorizerMockRecorder) RemoveGroupRoom(arg0, arg1 interface{}) *gomock.Call
- type MockConnection
- func (m *MockConnection) Close() error
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) ReadJSON(arg0 interface{}) error
- func (m *MockConnection) RemoteAddr() net.Addr
- func (m *MockConnection) SetPongHandler(arg0 func(string) error)
- func (m *MockConnection) SetReadDeadline(arg0 time.Time) error
- func (m *MockConnection) WriteControl(arg0 int, arg1 []byte, arg2 time.Time) error
- func (m *MockConnection) WriteJSON(arg0 interface{}) error
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockConnectionMockRecorder) ReadJSON(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnectionMockRecorder) SetPongHandler(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) WriteControl(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) WriteJSON(arg0 interface{}) *gomock.Call
- type MockHub
- func (m *MockHub) CloseGroupRoom(arg0, arg1 string) error
- func (m *MockHub) CloseGroupRoomAndNotify(arg0, arg1 string) error
- func (m *MockHub) Connect(arg0 http.ResponseWriter, arg1 *http.Request) error
- func (m *MockHub) EXPECT() *MockHubMockRecorder
- func (m *MockHub) GetConnectedGroupIds(arg0 string) []string
- func (m *MockHub) GetConnections() []websocket.UserConnection
- func (m *MockHub) GetGroupIds(arg0 string) []string
- func (m *MockHub) GetUserTokens() []string
- func (m *MockHub) RegisterGroup(arg0 string, arg1 websocket.GroupParameters, arg2 ...string) error
- func (m *MockHub) RegisterRoom(arg0 string, arg1 ...string) error
- func (m *MockHub) Send(arg0 string, arg1 interface{})
- func (m *MockHub) SendGroupRoom(arg0, arg1 string, arg2 interface{})
- func (m *MockHub) SendGroupRoomByConnections(arg0 []string, arg1, arg2 string, arg3 interface{})
- func (m *MockHub) Start(arg0 context.Context)
- type MockHubMockRecorder
- func (mr *MockHubMockRecorder) CloseGroupRoom(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) CloseGroupRoomAndNotify(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) Connect(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) GetConnectedGroupIds(arg0 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) GetConnections() *gomock.Call
- func (mr *MockHubMockRecorder) GetGroupIds(arg0 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) GetUserTokens() *gomock.Call
- func (mr *MockHubMockRecorder) RegisterGroup(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) RegisterRoom(arg0 interface{}, arg1 ...interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) Send(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) SendGroupRoom(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) SendGroupRoomByConnections(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockHubMockRecorder) Start(arg0 interface{}) *gomock.Call
- type MockUpgrader
- type MockUpgraderMockRecorder
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 ¶
Authenticate mocks base method.
func (*MockAuthorizer) Authorize ¶
Authorize mocks base method.
func (*MockAuthorizer) EXPECT ¶
func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder
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) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
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 ¶
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 ¶
CloseGroupRoom mocks base method.
func (*MockHub) CloseGroupRoomAndNotify ¶
CloseGroupRoomAndNotify mocks base method.
func (*MockHub) Connect ¶
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 ¶
GetConnectedGroupIds mocks base method.
func (*MockHub) GetConnections ¶
func (m *MockHub) GetConnections() []websocket.UserConnection
GetConnections mocks base method.
func (*MockHub) GetGroupIds ¶
GetGroupIds mocks base method.
func (*MockHub) GetUserTokens ¶
GetUserTokens mocks base method.
func (*MockHub) RegisterGroup ¶
RegisterGroup mocks base method.
func (*MockHub) RegisterRoom ¶
RegisterRoom mocks base method.
func (*MockHub) Send ¶
Send mocks base method.
func (*MockHub) SendGroupRoom ¶
SendGroupRoom mocks base method.
func (*MockHub) SendGroupRoomByConnections ¶
SendGroupRoomByConnections 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 ¶
func (m *MockUpgrader) EXPECT() *MockUpgraderMockRecorder
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.