Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./biz/config/config.go
Generated by this command:
mockgen -source=./biz/config/config.go -destination=./biz/mock/config.go -package=mock
Package mock is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: ./biz/dal/dal.go
Generated by this command:
mockgen -source=./biz/dal/dal.go -destination=./biz/mock/dal.go -package=mock
Package mock is a generated GoMock package.
Index ¶
- type MockConfiger
- type MockConfigerMockRecorder
- func (mr *MockConfigerMockRecorder) GetBurst() *gomock.Call
- func (mr *MockConfigerMockRecorder) GetMongDBName() *gomock.Call
- func (mr *MockConfigerMockRecorder) GetMongDBURI() *gomock.Call
- func (mr *MockConfigerMockRecorder) GetRateLimte() *gomock.Call
- func (mr *MockConfigerMockRecorder) GetRedisURI() *gomock.Call
- type MockDaler
- func (m *MockDaler) Allow(ctx context.Context, key string, limit redis_rate.Limit) (*redis_rate.Result, error)
- func (m *MockDaler) CreateAction(ctx context.Context, action *dal.Action) error
- func (m *MockDaler) DeleteActionByID(ctx context.Context, id primitive.ObjectID) error
- func (m *MockDaler) DeleteActions(ctx context.Context, ids []primitive.ObjectID) error
- func (m *MockDaler) EXPECT() *MockDalerMockRecorder
- func (m *MockDaler) FindActionByID(ctx context.Context, id primitive.ObjectID) (*dal.Action, error)
- func (m *MockDaler) FindActionByOpt(ctx context.Context, opt dal.FindActionOption) (*dal.Action, error)
- func (m *MockDaler) ListActions(ctx context.Context, opt dal.ListActionOption) (*[]dal.Action, int, error)
- func (m *MockDaler) UpdateAction(ctx context.Context, action *dal.Action) error
- type MockDalerMockRecorder
- func (mr *MockDalerMockRecorder) Allow(ctx, key, limit any) *gomock.Call
- func (mr *MockDalerMockRecorder) CreateAction(ctx, action any) *gomock.Call
- func (mr *MockDalerMockRecorder) DeleteActionByID(ctx, id any) *gomock.Call
- func (mr *MockDalerMockRecorder) DeleteActions(ctx, ids any) *gomock.Call
- func (mr *MockDalerMockRecorder) FindActionByID(ctx, id any) *gomock.Call
- func (mr *MockDalerMockRecorder) FindActionByOpt(ctx, opt any) *gomock.Call
- func (mr *MockDalerMockRecorder) ListActions(ctx, opt any) *gomock.Call
- func (mr *MockDalerMockRecorder) UpdateAction(ctx, action any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConfiger ¶
type MockConfiger struct {
// contains filtered or unexported fields
}
MockConfiger is a mock of Configer interface.
func NewMockConfiger ¶
func NewMockConfiger(ctrl *gomock.Controller) *MockConfiger
NewMockConfiger creates a new mock instance.
func (*MockConfiger) EXPECT ¶
func (m *MockConfiger) EXPECT() *MockConfigerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConfiger) GetMongDBName ¶
func (m *MockConfiger) GetMongDBName() string
GetMongDBName mocks base method.
func (*MockConfiger) GetMongDBURI ¶
func (m *MockConfiger) GetMongDBURI() string
GetMongDBURI mocks base method.
func (*MockConfiger) GetRateLimte ¶
func (m *MockConfiger) GetRateLimte() float64
GetRateLimte mocks base method.
func (*MockConfiger) GetRedisURI ¶
func (m *MockConfiger) GetRedisURI() string
GetRedisURI mocks base method.
type MockConfigerMockRecorder ¶
type MockConfigerMockRecorder struct {
// contains filtered or unexported fields
}
MockConfigerMockRecorder is the mock recorder for MockConfiger.
func (*MockConfigerMockRecorder) GetBurst ¶
func (mr *MockConfigerMockRecorder) GetBurst() *gomock.Call
GetBurst indicates an expected call of GetBurst.
func (*MockConfigerMockRecorder) GetMongDBName ¶
func (mr *MockConfigerMockRecorder) GetMongDBName() *gomock.Call
GetMongDBName indicates an expected call of GetMongDBName.
func (*MockConfigerMockRecorder) GetMongDBURI ¶
func (mr *MockConfigerMockRecorder) GetMongDBURI() *gomock.Call
GetMongDBURI indicates an expected call of GetMongDBURI.
func (*MockConfigerMockRecorder) GetRateLimte ¶
func (mr *MockConfigerMockRecorder) GetRateLimte() *gomock.Call
GetRateLimte indicates an expected call of GetRateLimte.
func (*MockConfigerMockRecorder) GetRedisURI ¶
func (mr *MockConfigerMockRecorder) GetRedisURI() *gomock.Call
GetRedisURI indicates an expected call of GetRedisURI.
type MockDaler ¶
type MockDaler struct {
// contains filtered or unexported fields
}
MockDaler is a mock of Daler interface.
func NewMockDaler ¶
func NewMockDaler(ctrl *gomock.Controller) *MockDaler
NewMockDaler creates a new mock instance.
func (*MockDaler) Allow ¶
func (m *MockDaler) Allow(ctx context.Context, key string, limit redis_rate.Limit) (*redis_rate.Result, error)
Allow mocks base method.
func (*MockDaler) CreateAction ¶
CreateAction mocks base method.
func (*MockDaler) DeleteActionByID ¶
DeleteActionByID mocks base method.
func (*MockDaler) DeleteActions ¶
DeleteActions mocks base method.
func (*MockDaler) EXPECT ¶
func (m *MockDaler) EXPECT() *MockDalerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDaler) FindActionByID ¶
FindActionByID mocks base method.
func (*MockDaler) FindActionByOpt ¶
func (m *MockDaler) FindActionByOpt(ctx context.Context, opt dal.FindActionOption) (*dal.Action, error)
FindActionByOpt mocks base method.
type MockDalerMockRecorder ¶
type MockDalerMockRecorder struct {
// contains filtered or unexported fields
}
MockDalerMockRecorder is the mock recorder for MockDaler.
func (*MockDalerMockRecorder) Allow ¶
func (mr *MockDalerMockRecorder) Allow(ctx, key, limit any) *gomock.Call
Allow indicates an expected call of Allow.
func (*MockDalerMockRecorder) CreateAction ¶
func (mr *MockDalerMockRecorder) CreateAction(ctx, action any) *gomock.Call
CreateAction indicates an expected call of CreateAction.
func (*MockDalerMockRecorder) DeleteActionByID ¶
func (mr *MockDalerMockRecorder) DeleteActionByID(ctx, id any) *gomock.Call
DeleteActionByID indicates an expected call of DeleteActionByID.
func (*MockDalerMockRecorder) DeleteActions ¶
func (mr *MockDalerMockRecorder) DeleteActions(ctx, ids any) *gomock.Call
DeleteActions indicates an expected call of DeleteActions.
func (*MockDalerMockRecorder) FindActionByID ¶
func (mr *MockDalerMockRecorder) FindActionByID(ctx, id any) *gomock.Call
FindActionByID indicates an expected call of FindActionByID.
func (*MockDalerMockRecorder) FindActionByOpt ¶
func (mr *MockDalerMockRecorder) FindActionByOpt(ctx, opt any) *gomock.Call
FindActionByOpt indicates an expected call of FindActionByOpt.
func (*MockDalerMockRecorder) ListActions ¶
func (mr *MockDalerMockRecorder) ListActions(ctx, opt any) *gomock.Call
ListActions indicates an expected call of ListActions.
func (*MockDalerMockRecorder) UpdateAction ¶
func (mr *MockDalerMockRecorder) UpdateAction(ctx, action any) *gomock.Call
UpdateAction indicates an expected call of UpdateAction.