Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: db/db.go
Generated by this command:
mockgen -source=db/db.go
Package mock_db is a generated GoMock package.
Index ¶
- type MockDBService
- func (m *MockDBService) CreateOrUpdateSubscription(ctx context.Context, sub *db.Subscription, userAnyID string) error
- func (m *MockDBService) EXPECT() *MockDBServiceMockRecorder
- func (m *MockDBService) GetAllSubscriptionsInStatus(ctx context.Context, status anypp_api.SubscriptionStatus) ([]string, error)
- func (m *MockDBService) GetPaymentRequest(ctx context.Context, billingID string) (*db.PaymentRequest, error)
- func (m *MockDBService) GetSubscription(ctx context.Context, subID string) (*db.Subscription, error)
- func (m *MockDBService) GetSubscriptionForUser(ctx context.Context, userAnyID string) (*db.Subscription, error)
- func (m *MockDBService) Init(a *app.App) error
- func (m *MockDBService) Name() string
- func (m *MockDBService) SaveNewPaymentRequest(ctx context.Context, bsr *anypp_api.BuySubscriptionRequest, billingID string) error
- func (m *MockDBService) UpdatePaymentRequest(ctx context.Context, pr *db.PaymentRequest, billingID string) error
- type MockDBServiceMockRecorder
- func (mr *MockDBServiceMockRecorder) CreateOrUpdateSubscription(ctx, sub, userAnyID any) *gomock.Call
- func (mr *MockDBServiceMockRecorder) GetAllSubscriptionsInStatus(ctx, status any) *gomock.Call
- func (mr *MockDBServiceMockRecorder) GetPaymentRequest(ctx, billingID any) *gomock.Call
- func (mr *MockDBServiceMockRecorder) GetSubscription(ctx, subID any) *gomock.Call
- func (mr *MockDBServiceMockRecorder) GetSubscriptionForUser(ctx, userAnyID any) *gomock.Call
- func (mr *MockDBServiceMockRecorder) Init(a any) *gomock.Call
- func (mr *MockDBServiceMockRecorder) Name() *gomock.Call
- func (mr *MockDBServiceMockRecorder) SaveNewPaymentRequest(ctx, bsr, billingID any) *gomock.Call
- func (mr *MockDBServiceMockRecorder) UpdatePaymentRequest(ctx, pr, billingID any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDBService ¶
type MockDBService struct {
// contains filtered or unexported fields
}
MockDBService is a mock of DBService interface.
func NewMockDBService ¶
func NewMockDBService(ctrl *gomock.Controller) *MockDBService
NewMockDBService creates a new mock instance.
func (*MockDBService) CreateOrUpdateSubscription ¶
func (m *MockDBService) CreateOrUpdateSubscription(ctx context.Context, sub *db.Subscription, userAnyID string) error
CreateOrUpdateSubscription mocks base method.
func (*MockDBService) EXPECT ¶
func (m *MockDBService) EXPECT() *MockDBServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBService) GetAllSubscriptionsInStatus ¶
func (m *MockDBService) GetAllSubscriptionsInStatus(ctx context.Context, status anypp_api.SubscriptionStatus) ([]string, error)
GetAllSubscriptionsInStatus mocks base method.
func (*MockDBService) GetPaymentRequest ¶
func (m *MockDBService) GetPaymentRequest(ctx context.Context, billingID string) (*db.PaymentRequest, error)
GetPaymentRequest mocks base method.
func (*MockDBService) GetSubscription ¶
func (m *MockDBService) GetSubscription(ctx context.Context, subID string) (*db.Subscription, error)
GetSubscription mocks base method.
func (*MockDBService) GetSubscriptionForUser ¶
func (m *MockDBService) GetSubscriptionForUser(ctx context.Context, userAnyID string) (*db.Subscription, error)
GetSubscriptionForUser mocks base method.
func (*MockDBService) SaveNewPaymentRequest ¶
func (m *MockDBService) SaveNewPaymentRequest(ctx context.Context, bsr *anypp_api.BuySubscriptionRequest, billingID string) error
SaveNewPaymentRequest mocks base method.
func (*MockDBService) UpdatePaymentRequest ¶
func (m *MockDBService) UpdatePaymentRequest(ctx context.Context, pr *db.PaymentRequest, billingID string) error
UpdatePaymentRequest mocks base method.
type MockDBServiceMockRecorder ¶
type MockDBServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockDBServiceMockRecorder is the mock recorder for MockDBService.
func (*MockDBServiceMockRecorder) CreateOrUpdateSubscription ¶
func (mr *MockDBServiceMockRecorder) CreateOrUpdateSubscription(ctx, sub, userAnyID any) *gomock.Call
CreateOrUpdateSubscription indicates an expected call of CreateOrUpdateSubscription.
func (*MockDBServiceMockRecorder) GetAllSubscriptionsInStatus ¶
func (mr *MockDBServiceMockRecorder) GetAllSubscriptionsInStatus(ctx, status any) *gomock.Call
GetAllSubscriptionsInStatus indicates an expected call of GetAllSubscriptionsInStatus.
func (*MockDBServiceMockRecorder) GetPaymentRequest ¶
func (mr *MockDBServiceMockRecorder) GetPaymentRequest(ctx, billingID any) *gomock.Call
GetPaymentRequest indicates an expected call of GetPaymentRequest.
func (*MockDBServiceMockRecorder) GetSubscription ¶
func (mr *MockDBServiceMockRecorder) GetSubscription(ctx, subID any) *gomock.Call
GetSubscription indicates an expected call of GetSubscription.
func (*MockDBServiceMockRecorder) GetSubscriptionForUser ¶
func (mr *MockDBServiceMockRecorder) GetSubscriptionForUser(ctx, userAnyID any) *gomock.Call
GetSubscriptionForUser indicates an expected call of GetSubscriptionForUser.
func (*MockDBServiceMockRecorder) Init ¶
func (mr *MockDBServiceMockRecorder) Init(a any) *gomock.Call
Init indicates an expected call of Init.
func (*MockDBServiceMockRecorder) Name ¶
func (mr *MockDBServiceMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockDBServiceMockRecorder) SaveNewPaymentRequest ¶
func (mr *MockDBServiceMockRecorder) SaveNewPaymentRequest(ctx, bsr, billingID any) *gomock.Call
SaveNewPaymentRequest indicates an expected call of SaveNewPaymentRequest.
func (*MockDBServiceMockRecorder) UpdatePaymentRequest ¶
func (mr *MockDBServiceMockRecorder) UpdatePaymentRequest(ctx, pr, billingID any) *gomock.Call
UpdatePaymentRequest indicates an expected call of UpdatePaymentRequest.