Documentation
¶
Overview ¶
Package service is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound is returned when user is not found. ErrUserNotFound = errors.New("user not found") // ErrBadResponse is returned when VK API returns bad response. ErrBadResponse = errors.New("bad response") )
Functions ¶
This section is empty.
Types ¶
type MockVkClient ¶
type MockVkClient struct {
// contains filtered or unexported fields
}
MockVkClient is a mock of VkClient interface.
func NewMockVkClient ¶
func NewMockVkClient(ctrl *gomock.Controller) *MockVkClient
NewMockVkClient creates a new mock instance.
func (*MockVkClient) EXPECT ¶
func (m *MockVkClient) EXPECT() *MockVkClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVkClient) GroupsBan ¶
func (m *MockVkClient) GroupsBan(params api.Params) (int, error)
GroupsBan mocks base method.
func (*MockVkClient) UsersGet ¶
func (m *MockVkClient) UsersGet(params api.Params) (api.UsersGetResponse, error)
UsersGet mocks base method.
func (*MockVkClient) WallDeleteComment ¶
func (m *MockVkClient) WallDeleteComment(params api.Params) (int, error)
WallDeleteComment mocks base method.
type MockVkClientMockRecorder ¶
type MockVkClientMockRecorder struct {
// contains filtered or unexported fields
}
MockVkClientMockRecorder is the mock recorder for MockVkClient.
func (*MockVkClientMockRecorder) GroupsBan ¶
func (mr *MockVkClientMockRecorder) GroupsBan(params interface{}) *gomock.Call
GroupsBan indicates an expected call of GroupsBan.
func (*MockVkClientMockRecorder) UsersGet ¶
func (mr *MockVkClientMockRecorder) UsersGet(params interface{}) *gomock.Call
UsersGet indicates an expected call of UsersGet.
func (*MockVkClientMockRecorder) WallDeleteComment ¶
func (mr *MockVkClientMockRecorder) WallDeleteComment(params interface{}) *gomock.Call
WallDeleteComment indicates an expected call of WallDeleteComment.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a banhammer service.
func NewService ¶
NewService creates a new banhammer service.
Click to show internal directories.
Click to hide internal directories.