Documentation ¶
Index ¶
- type MockClient
- func (_m *MockClient) EXPECT() *_MockClientRecorder
- func (_m *MockClient) GetAllMembers(guildID string, after string, limit int) ([]*discordgo.Member, error)
- func (_m *MockClient) GetAllRoles(guildID string) ([]*discordgo.Role, error)
- func (_m *MockClient) GetUser(userID string) (*discordgo.User, error)
- func (_m *MockClient) RemoveMemberRole(guildID string, userID string, role string) error
- func (_m *MockClient) UpdateMember(guildID string, userID string, roles []string) error
- type MockClientFactory
- type MockRoleMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
Mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
func (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *_MockClientRecorder
func (*MockClient) GetAllMembers ¶
func (*MockClient) GetAllRoles ¶
func (_m *MockClient) GetAllRoles(guildID string) ([]*discordgo.Role, error)
func (*MockClient) RemoveMemberRole ¶
func (_m *MockClient) RemoveMemberRole(guildID string, userID string, role string) error
func (*MockClient) UpdateMember ¶
func (_m *MockClient) UpdateMember(guildID string, userID string, roles []string) error
type MockClientFactory ¶
type MockClientFactory struct {
// contains filtered or unexported fields
}
Mock of ClientFactory interface
func NewMockClientFactory ¶
func NewMockClientFactory(ctrl *gomock.Controller) *MockClientFactory
func (*MockClientFactory) EXPECT ¶
func (_m *MockClientFactory) EXPECT() *_MockClientFactoryRecorder
type MockRoleMap ¶
type MockRoleMap struct {
// contains filtered or unexported fields
}
Mock of RoleMap interface
func NewMockRoleMap ¶
func NewMockRoleMap(ctrl *gomock.Controller) *MockRoleMap
func (*MockRoleMap) EXPECT ¶
func (_m *MockRoleMap) EXPECT() *_MockRoleMapRecorder
func (*MockRoleMap) GetRoleId ¶
func (_m *MockRoleMap) GetRoleId(roleName string) string
func (*MockRoleMap) GetRoleName ¶
func (_m *MockRoleMap) GetRoleName(roleId string) string
func (*MockRoleMap) UpdateRoles ¶
func (_m *MockRoleMap) UpdateRoles() error
Click to show internal directories.
Click to hide internal directories.