mock

package
v0.0.0-...-11e3e77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockConfiger) GetBurst

func (m *MockConfiger) GetBurst() int

GetBurst mocks base method.

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

func (m *MockDaler) CreateAction(ctx context.Context, action *dal.Action) error

CreateAction mocks base method.

func (*MockDaler) DeleteActionByID

func (m *MockDaler) DeleteActionByID(ctx context.Context, id primitive.ObjectID) error

DeleteActionByID mocks base method.

func (*MockDaler) DeleteActions

func (m *MockDaler) DeleteActions(ctx context.Context, ids []primitive.ObjectID) error

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

func (m *MockDaler) FindActionByID(ctx context.Context, id primitive.ObjectID) (*dal.Action, error)

FindActionByID mocks base method.

func (*MockDaler) FindActionByOpt

func (m *MockDaler) FindActionByOpt(ctx context.Context, opt dal.FindActionOption) (*dal.Action, error)

FindActionByOpt mocks base method.

func (*MockDaler) ListActions

func (m *MockDaler) ListActions(ctx context.Context, opt dal.ListActionOption) (*[]dal.Action, int, error)

ListActions mocks base method.

func (*MockDaler) UpdateAction

func (m *MockDaler) UpdateAction(ctx context.Context, action *dal.Action) error

UpdateAction 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL