Documentation ¶
Index ¶
- type MockCommand
- func (m *MockCommand) CreateGroup(name string) (map[string]interface{}, error)
- func (m *MockCommand) DeleteGroup(groupId string) error
- func (m *MockCommand) EXPECT() *MockCommandMockRecorder
- func (m *MockCommand) GetGroup(groupId string) (map[string]interface{}, error)
- func (m *MockCommand) GetGroupMembers(groupId string) ([]map[string]interface{}, error)
- func (m *MockCommand) GetGroupMembersByAppID(groupId, appId string) ([]map[string]interface{}, error)
- func (m *MockCommand) GetGroups() ([]map[string]interface{}, error)
- func (m *MockCommand) JoinGroup(groupId, nodeId string) error
- func (m *MockCommand) LeaveGroup(groupId, nodeId string) error
- type MockCommandMockRecorder
- func (mr *MockCommandMockRecorder) CreateGroup(name interface{}) *gomock.Call
- func (mr *MockCommandMockRecorder) DeleteGroup(groupId interface{}) *gomock.Call
- func (mr *MockCommandMockRecorder) GetGroup(groupId interface{}) *gomock.Call
- func (mr *MockCommandMockRecorder) GetGroupMembers(groupId interface{}) *gomock.Call
- func (mr *MockCommandMockRecorder) GetGroupMembersByAppID(groupId, appId interface{}) *gomock.Call
- func (mr *MockCommandMockRecorder) GetGroups() *gomock.Call
- func (mr *MockCommandMockRecorder) JoinGroup(groupId, nodeId interface{}) *gomock.Call
- func (mr *MockCommandMockRecorder) LeaveGroup(groupId, nodeId interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCommand ¶
type MockCommand struct {
// contains filtered or unexported fields
}
MockCommand is a mock of Command interface
func NewMockCommand ¶
func NewMockCommand(ctrl *gomock.Controller) *MockCommand
NewMockCommand creates a new mock instance
func (*MockCommand) CreateGroup ¶
func (m *MockCommand) CreateGroup(name string) (map[string]interface{}, error)
CreateGroup mocks base method
func (*MockCommand) DeleteGroup ¶
func (m *MockCommand) DeleteGroup(groupId string) error
DeleteGroup mocks base method
func (*MockCommand) EXPECT ¶
func (m *MockCommand) EXPECT() *MockCommandMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCommand) GetGroup ¶
func (m *MockCommand) GetGroup(groupId string) (map[string]interface{}, error)
GetGroup mocks base method
func (*MockCommand) GetGroupMembers ¶
func (m *MockCommand) GetGroupMembers(groupId string) ([]map[string]interface{}, error)
GetGroupMembers mocks base method
func (*MockCommand) GetGroupMembersByAppID ¶
func (m *MockCommand) GetGroupMembersByAppID(groupId, appId string) ([]map[string]interface{}, error)
GetGroupMembersByAppID mocks base method
func (*MockCommand) GetGroups ¶
func (m *MockCommand) GetGroups() ([]map[string]interface{}, error)
GetGroups mocks base method
func (*MockCommand) JoinGroup ¶
func (m *MockCommand) JoinGroup(groupId, nodeId string) error
JoinGroup mocks base method
func (*MockCommand) LeaveGroup ¶
func (m *MockCommand) LeaveGroup(groupId, nodeId string) error
LeaveGroup mocks base method
type MockCommandMockRecorder ¶
type MockCommandMockRecorder struct {
// contains filtered or unexported fields
}
MockCommandMockRecorder is the mock recorder for MockCommand
func (*MockCommandMockRecorder) CreateGroup ¶
func (mr *MockCommandMockRecorder) CreateGroup(name interface{}) *gomock.Call
CreateGroup indicates an expected call of CreateGroup
func (*MockCommandMockRecorder) DeleteGroup ¶
func (mr *MockCommandMockRecorder) DeleteGroup(groupId interface{}) *gomock.Call
DeleteGroup indicates an expected call of DeleteGroup
func (*MockCommandMockRecorder) GetGroup ¶
func (mr *MockCommandMockRecorder) GetGroup(groupId interface{}) *gomock.Call
GetGroup indicates an expected call of GetGroup
func (*MockCommandMockRecorder) GetGroupMembers ¶
func (mr *MockCommandMockRecorder) GetGroupMembers(groupId interface{}) *gomock.Call
GetGroupMembers indicates an expected call of GetGroupMembers
func (*MockCommandMockRecorder) GetGroupMembersByAppID ¶
func (mr *MockCommandMockRecorder) GetGroupMembersByAppID(groupId, appId interface{}) *gomock.Call
GetGroupMembersByAppID indicates an expected call of GetGroupMembersByAppID
func (*MockCommandMockRecorder) GetGroups ¶
func (mr *MockCommandMockRecorder) GetGroups() *gomock.Call
GetGroups indicates an expected call of GetGroups
func (*MockCommandMockRecorder) JoinGroup ¶
func (mr *MockCommandMockRecorder) JoinGroup(groupId, nodeId interface{}) *gomock.Call
JoinGroup indicates an expected call of JoinGroup
func (*MockCommandMockRecorder) LeaveGroup ¶
func (mr *MockCommandMockRecorder) LeaveGroup(groupId, nodeId interface{}) *gomock.Call
LeaveGroup indicates an expected call of LeaveGroup