Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockContent
- func (m *MockContent) AddContent(ctx context.Context, content *model.Content) error
- func (m *MockContent) DeleteSourceContents(ctx context.Context, sourceID uint) (int64, error)
- func (m *MockContent) EXPECT() *MockContentMockRecorder
- func (m *MockContent) HashIDExist(ctx context.Context, hashID string) (bool, error)
- func (m *MockContent) Init(ctx context.Context) error
- type MockContentMockRecorder
- func (mr *MockContentMockRecorder) AddContent(ctx, content interface{}) *gomock.Call
- func (mr *MockContentMockRecorder) DeleteSourceContents(ctx, sourceID interface{}) *gomock.Call
- func (mr *MockContentMockRecorder) HashIDExist(ctx, hashID interface{}) *gomock.Call
- func (mr *MockContentMockRecorder) Init(ctx interface{}) *gomock.Call
- type MockSource
- func (m *MockSource) AddSource(ctx context.Context, source *model.Source) error
- func (m *MockSource) Delete(ctx context.Context, id uint) error
- func (m *MockSource) EXPECT() *MockSourceMockRecorder
- func (m *MockSource) GetSource(ctx context.Context, id uint) (*model.Source, error)
- func (m *MockSource) GetSourceByURL(ctx context.Context, url string) (*model.Source, error)
- func (m *MockSource) GetSources(ctx context.Context) ([]*model.Source, error)
- func (m *MockSource) Init(ctx context.Context) error
- func (m *MockSource) UpsertSource(ctx context.Context, sourceID uint, newSource *model.Source) error
- type MockSourceMockRecorder
- func (mr *MockSourceMockRecorder) AddSource(ctx, source interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) Delete(ctx, id interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) GetSource(ctx, id interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) GetSourceByURL(ctx, url interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) GetSources(ctx interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) Init(ctx interface{}) *gomock.Call
- func (mr *MockSourceMockRecorder) UpsertSource(ctx, sourceID, newSource interface{}) *gomock.Call
- type MockStorage
- type MockStorageMockRecorder
- type MockSubscription
- func (m *MockSubscription) AddSubscription(ctx context.Context, subscription *model.Subscribe) error
- func (m *MockSubscription) CountSourceSubscriptions(ctx context.Context, sourceID uint) (int64, error)
- func (m *MockSubscription) CountSubscriptions(ctx context.Context) (int64, error)
- func (m *MockSubscription) DeleteSubscription(ctx context.Context, userID int64, sourceID uint) (int64, error)
- func (m *MockSubscription) EXPECT() *MockSubscriptionMockRecorder
- func (m *MockSubscription) GetSubscription(ctx context.Context, userID int64, sourceID uint) (*model.Subscribe, error)
- func (m *MockSubscription) GetSubscriptionsBySourceID(ctx context.Context, sourceID uint, opts *storage.GetSubscriptionsOptions) (*storage.GetSubscriptionsResult, error)
- func (m *MockSubscription) GetSubscriptionsByUserID(ctx context.Context, userID int64, opts *storage.GetSubscriptionsOptions) (*storage.GetSubscriptionsResult, error)
- func (m *MockSubscription) Init(ctx context.Context) error
- func (m *MockSubscription) SubscriptionExist(ctx context.Context, userID int64, sourceID uint) (bool, error)
- func (m *MockSubscription) UpdateSubscription(ctx context.Context, userID int64, sourceID uint, ...) error
- func (m *MockSubscription) UpsertSubscription(ctx context.Context, userID int64, sourceID uint, ...) error
- type MockSubscriptionMockRecorder
- func (mr *MockSubscriptionMockRecorder) AddSubscription(ctx, subscription interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) CountSourceSubscriptions(ctx, sourceID interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) CountSubscriptions(ctx interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) DeleteSubscription(ctx, userID, sourceID interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) GetSubscription(ctx, userID, sourceID interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) GetSubscriptionsBySourceID(ctx, sourceID, opts interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) GetSubscriptionsByUserID(ctx, userID, opts interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) Init(ctx interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) SubscriptionExist(ctx, userID, sourceID interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) UpdateSubscription(ctx, userID, sourceID, newSubscription interface{}) *gomock.Call
- func (mr *MockSubscriptionMockRecorder) UpsertSubscription(ctx, userID, sourceID, newSubscription interface{}) *gomock.Call
- type MockUser
- type MockUserMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockContent ¶
type MockContent struct {
// contains filtered or unexported fields
}
MockContent is a mock of Content interface.
func NewMockContent ¶
func NewMockContent(ctrl *gomock.Controller) *MockContent
NewMockContent creates a new mock instance.
func (*MockContent) AddContent ¶
AddContent mocks base method.
func (*MockContent) DeleteSourceContents ¶
DeleteSourceContents mocks base method.
func (*MockContent) EXPECT ¶
func (m *MockContent) EXPECT() *MockContentMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockContent) HashIDExist ¶
HashIDExist mocks base method.
type MockContentMockRecorder ¶
type MockContentMockRecorder struct {
// contains filtered or unexported fields
}
MockContentMockRecorder is the mock recorder for MockContent.
func (*MockContentMockRecorder) AddContent ¶
func (mr *MockContentMockRecorder) AddContent(ctx, content interface{}) *gomock.Call
AddContent indicates an expected call of AddContent.
func (*MockContentMockRecorder) DeleteSourceContents ¶
func (mr *MockContentMockRecorder) DeleteSourceContents(ctx, sourceID interface{}) *gomock.Call
DeleteSourceContents indicates an expected call of DeleteSourceContents.
func (*MockContentMockRecorder) HashIDExist ¶
func (mr *MockContentMockRecorder) HashIDExist(ctx, hashID interface{}) *gomock.Call
HashIDExist indicates an expected call of HashIDExist.
func (*MockContentMockRecorder) Init ¶
func (mr *MockContentMockRecorder) Init(ctx interface{}) *gomock.Call
Init indicates an expected call of Init.
type MockSource ¶
type MockSource struct {
// contains filtered or unexported fields
}
MockSource is a mock of Source interface.
func NewMockSource ¶
func NewMockSource(ctrl *gomock.Controller) *MockSource
NewMockSource creates a new mock instance.
func (*MockSource) Delete ¶
func (m *MockSource) Delete(ctx context.Context, id uint) error
Delete mocks base method.
func (*MockSource) EXPECT ¶
func (m *MockSource) EXPECT() *MockSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSource) GetSourceByURL ¶
GetSourceByURL mocks base method.
func (*MockSource) GetSources ¶
GetSources mocks base method.
func (*MockSource) Init ¶
func (m *MockSource) Init(ctx context.Context) error
Init mocks base method.
func (*MockSource) UpsertSource ¶
func (m *MockSource) UpsertSource(ctx context.Context, sourceID uint, newSource *model.Source) error
UpsertSource mocks base method.
type MockSourceMockRecorder ¶
type MockSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockSourceMockRecorder is the mock recorder for MockSource.
func (*MockSourceMockRecorder) AddSource ¶
func (mr *MockSourceMockRecorder) AddSource(ctx, source interface{}) *gomock.Call
AddSource indicates an expected call of AddSource.
func (*MockSourceMockRecorder) Delete ¶
func (mr *MockSourceMockRecorder) Delete(ctx, id interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockSourceMockRecorder) GetSource ¶
func (mr *MockSourceMockRecorder) GetSource(ctx, id interface{}) *gomock.Call
GetSource indicates an expected call of GetSource.
func (*MockSourceMockRecorder) GetSourceByURL ¶
func (mr *MockSourceMockRecorder) GetSourceByURL(ctx, url interface{}) *gomock.Call
GetSourceByURL indicates an expected call of GetSourceByURL.
func (*MockSourceMockRecorder) GetSources ¶
func (mr *MockSourceMockRecorder) GetSources(ctx interface{}) *gomock.Call
GetSources indicates an expected call of GetSources.
func (*MockSourceMockRecorder) Init ¶
func (mr *MockSourceMockRecorder) Init(ctx interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockSourceMockRecorder) UpsertSource ¶
func (mr *MockSourceMockRecorder) UpsertSource(ctx, sourceID, newSource interface{}) *gomock.Call
UpsertSource indicates an expected call of UpsertSource.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) Init ¶
func (mr *MockStorageMockRecorder) Init(ctx interface{}) *gomock.Call
Init indicates an expected call of Init.
type MockSubscription ¶
type MockSubscription struct {
// contains filtered or unexported fields
}
MockSubscription is a mock of Subscription interface.
func NewMockSubscription ¶
func NewMockSubscription(ctrl *gomock.Controller) *MockSubscription
NewMockSubscription creates a new mock instance.
func (*MockSubscription) AddSubscription ¶
func (m *MockSubscription) AddSubscription(ctx context.Context, subscription *model.Subscribe) error
AddSubscription mocks base method.
func (*MockSubscription) CountSourceSubscriptions ¶
func (m *MockSubscription) CountSourceSubscriptions(ctx context.Context, sourceID uint) (int64, error)
CountSourceSubscriptions mocks base method.
func (*MockSubscription) CountSubscriptions ¶
func (m *MockSubscription) CountSubscriptions(ctx context.Context) (int64, error)
CountSubscriptions mocks base method.
func (*MockSubscription) DeleteSubscription ¶
func (m *MockSubscription) DeleteSubscription(ctx context.Context, userID int64, sourceID uint) (int64, error)
DeleteSubscription mocks base method.
func (*MockSubscription) EXPECT ¶
func (m *MockSubscription) EXPECT() *MockSubscriptionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscription) GetSubscription ¶
func (m *MockSubscription) GetSubscription(ctx context.Context, userID int64, sourceID uint) (*model.Subscribe, error)
GetSubscription mocks base method.
func (*MockSubscription) GetSubscriptionsBySourceID ¶
func (m *MockSubscription) GetSubscriptionsBySourceID(ctx context.Context, sourceID uint, opts *storage.GetSubscriptionsOptions) (*storage.GetSubscriptionsResult, error)
GetSubscriptionsBySourceID mocks base method.
func (*MockSubscription) GetSubscriptionsByUserID ¶
func (m *MockSubscription) GetSubscriptionsByUserID(ctx context.Context, userID int64, opts *storage.GetSubscriptionsOptions) (*storage.GetSubscriptionsResult, error)
GetSubscriptionsByUserID mocks base method.
func (*MockSubscription) Init ¶
func (m *MockSubscription) Init(ctx context.Context) error
Init mocks base method.
func (*MockSubscription) SubscriptionExist ¶
func (m *MockSubscription) SubscriptionExist(ctx context.Context, userID int64, sourceID uint) (bool, error)
SubscriptionExist mocks base method.
func (*MockSubscription) UpdateSubscription ¶
func (m *MockSubscription) UpdateSubscription(ctx context.Context, userID int64, sourceID uint, newSubscription *model.Subscribe) error
UpdateSubscription mocks base method.
func (*MockSubscription) UpsertSubscription ¶
func (m *MockSubscription) UpsertSubscription(ctx context.Context, userID int64, sourceID uint, newSubscription *model.Subscribe) error
UpsertSubscription mocks base method.
type MockSubscriptionMockRecorder ¶
type MockSubscriptionMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriptionMockRecorder is the mock recorder for MockSubscription.
func (*MockSubscriptionMockRecorder) AddSubscription ¶
func (mr *MockSubscriptionMockRecorder) AddSubscription(ctx, subscription interface{}) *gomock.Call
AddSubscription indicates an expected call of AddSubscription.
func (*MockSubscriptionMockRecorder) CountSourceSubscriptions ¶
func (mr *MockSubscriptionMockRecorder) CountSourceSubscriptions(ctx, sourceID interface{}) *gomock.Call
CountSourceSubscriptions indicates an expected call of CountSourceSubscriptions.
func (*MockSubscriptionMockRecorder) CountSubscriptions ¶
func (mr *MockSubscriptionMockRecorder) CountSubscriptions(ctx interface{}) *gomock.Call
CountSubscriptions indicates an expected call of CountSubscriptions.
func (*MockSubscriptionMockRecorder) DeleteSubscription ¶
func (mr *MockSubscriptionMockRecorder) DeleteSubscription(ctx, userID, sourceID interface{}) *gomock.Call
DeleteSubscription indicates an expected call of DeleteSubscription.
func (*MockSubscriptionMockRecorder) GetSubscription ¶
func (mr *MockSubscriptionMockRecorder) GetSubscription(ctx, userID, sourceID interface{}) *gomock.Call
GetSubscription indicates an expected call of GetSubscription.
func (*MockSubscriptionMockRecorder) GetSubscriptionsBySourceID ¶
func (mr *MockSubscriptionMockRecorder) GetSubscriptionsBySourceID(ctx, sourceID, opts interface{}) *gomock.Call
GetSubscriptionsBySourceID indicates an expected call of GetSubscriptionsBySourceID.
func (*MockSubscriptionMockRecorder) GetSubscriptionsByUserID ¶
func (mr *MockSubscriptionMockRecorder) GetSubscriptionsByUserID(ctx, userID, opts interface{}) *gomock.Call
GetSubscriptionsByUserID indicates an expected call of GetSubscriptionsByUserID.
func (*MockSubscriptionMockRecorder) Init ¶
func (mr *MockSubscriptionMockRecorder) Init(ctx interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockSubscriptionMockRecorder) SubscriptionExist ¶
func (mr *MockSubscriptionMockRecorder) SubscriptionExist(ctx, userID, sourceID interface{}) *gomock.Call
SubscriptionExist indicates an expected call of SubscriptionExist.
func (*MockSubscriptionMockRecorder) UpdateSubscription ¶
func (mr *MockSubscriptionMockRecorder) UpdateSubscription(ctx, userID, sourceID, newSubscription interface{}) *gomock.Call
UpdateSubscription indicates an expected call of UpdateSubscription.
func (*MockSubscriptionMockRecorder) UpsertSubscription ¶
func (mr *MockSubscriptionMockRecorder) UpsertSubscription(ctx, userID, sourceID, newSubscription interface{}) *gomock.Call
UpsertSubscription indicates an expected call of UpsertSubscription.
type MockUser ¶
type MockUser struct {
// contains filtered or unexported fields
}
MockUser is a mock of User interface.
func NewMockUser ¶
func NewMockUser(ctrl *gomock.Controller) *MockUser
NewMockUser creates a new mock instance.
func (*MockUser) EXPECT ¶
func (m *MockUser) EXPECT() *MockUserMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockUserMockRecorder ¶
type MockUserMockRecorder struct {
// contains filtered or unexported fields
}
MockUserMockRecorder is the mock recorder for MockUser.
func (*MockUserMockRecorder) CrateUser ¶
func (mr *MockUserMockRecorder) CrateUser(ctx, user interface{}) *gomock.Call
CrateUser indicates an expected call of CrateUser.
func (*MockUserMockRecorder) GetUser ¶
func (mr *MockUserMockRecorder) GetUser(ctx, id interface{}) *gomock.Call
GetUser indicates an expected call of GetUser.
func (*MockUserMockRecorder) Init ¶
func (mr *MockUserMockRecorder) Init(ctx interface{}) *gomock.Call
Init indicates an expected call of Init.