contract

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: GPL-3.0 Imports: 8 Imported by: 3

Documentation

Overview

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnumServiceBase added in v1.3.0

type EnumServiceBase[T contract.IEnumItem] struct {
	FindItemsFunc func() ([]T, error)
	// contains filtered or unexported fields
}

func (*EnumServiceBase[T]) AllItems added in v1.3.0

func (m *EnumServiceBase[T]) AllItems() (res []T, err error)

func (*EnumServiceBase[T]) GetItem added in v1.3.0

func (m *EnumServiceBase[T]) GetItem(predicate func(T) bool) (res T, err error)

type IApi

type IApi interface {
	// Call is 调用
	Call() (any, error)
}

IApi is api接口

type IApiFactory

type IApiFactory interface {
	// 创建api
	Build(endpoint, api string) (instance IApi, err error)
	// 注册
	Register(endpoint, name string, api any)
}

IApiFactory is api工厂

type IApiPort added in v1.0.0

type IApiPort interface {
	Listen()
}

api端

type IApiSession added in v1.0.0

type IApiSession[T any] interface {
	SetSession(T) error
}

api会话

type ICache added in v1.2.0

type ICache interface {
	// 刷新
	Flush() error
	// 获取
	Get(string, any) error
	// 更新时间
	GetUpdateOn() int64
}

缓存

type ICommand added in v1.2.0

type ICommand interface {
	Exec() (stdout string, stderr string, err error)
	SetDir(format string, args ...any) ICommand
	SetExpires(expires time.Duration) ICommand
}

命令接口

type ICommandFactory added in v1.2.0

type ICommandFactory interface {
	// 创建命令
	Build(name string, args ...string) ICommand
}

命令工厂

type IConfigLoader added in v1.0.0

type IConfigLoader interface {
	// 加载
	Load(v any) error
}

配置加载器

type ICrypto added in v1.4.0

type ICrypto interface {
	// 比较
	Compare([]byte, []byte) (bool, error)
	// 解密
	Decrypt([]byte) ([]byte, error)
	// 加密
	Encrypt([]byte) ([]byte, error)
}

密码

type IDbFactory

type IDbFactory interface {
	// 仓储
	Db(entry contract.IDbModel, extra ...any) IDbRepository
	// 工作单元
	Uow() IUnitOfWork
}

数据工厂

type IDbQuery

type IDbQuery interface {
	// 数量
	Count() (int64, error)
	// 排序(正序)
	Order(fields ...string) IDbQuery
	// 排序(倒序)
	OrderByDesc(fields ...string) IDbQuery
	// 跳过
	Skip(v int) IDbQuery
	// 限制
	Take(v int) IDbQuery
	// 数组结果
	ToArray(dst any) error
	// 条件
	Where(args ...any) IDbQuery
}

数据查询

type IDbRepository

type IDbRepository interface {
	Add(entry contract.IDbModel) error
	Query() IDbQuery
	Remove(entry contract.IDbModel) error
	Save(entry contract.IDbModel) error
}

数据仓库

type IEnumFactory added in v1.2.0

type IEnumFactory interface {
	// 创建枚举
	Build(string, interface{}) error
}

枚举工厂

type IEnumService added in v1.2.0

type IEnumService[T contract.IEnumItem] interface {
	// 所有项
	AllItems() ([]T, error)
	// 获取项
	GetItem(func(T) bool) (T, error)
}

枚举服务

type IError

type IError interface {
	error

	// 代码
	GetCode() errorcode.Value
	// 数据
	GetData() any
}

错误接口

type IFileEntry added in v1.2.0

type IFileEntry interface {
	// 是否存在
	Exists() bool
	// 获取路径
	GetPath() string
	// 移动到
	MoveTo(...string) error
	// 删除
	Remove() error
}

文件项

type IFileFactory added in v1.2.0

type IFileFactory interface {
	// 创建文件项(文件或目录)
	BuildFileEntry(paths ...string) IFileEntry
}

文件工厂

type ILog

type ILog interface {
	AddLabel(k, f string, v ...any) ILog
	Debug()
	Error(err error)
	Info()
	Warning()
}

日志

type ILogFactory

type ILogFactory interface {
	Build() ILog
}

日志工厂

type INowTime

type INowTime interface {
	// 是否相同
	IsSame(int64, string) bool
	// 时间戳
	Unix() int64
}

当前时间

type IOsPath added in v1.0.0

type IOsPath interface {
	Getwd() string
	Join(paths ...string) string
}

相同路径

type IRedis

type IRedis interface {
	BitCount(key string, start, end int64) (int64, error)
	BitOp(op, destKey string, keys ...string) (bool, error)
	BitPos(key string, bit bool, start, end int64) (int64, error)
	BLPop(timeout time.Duration, keys ...string) ([]string, error)
	BRPop(timeout time.Duration, keys ...string) ([]string, error)
	Close() error
	Decr(key string) (int64, error)
	DecrBy(key string, decrement int64) (int64, error)
	Del(...string) (int64, error)
	Exists(string) (bool, error)
	ExpireAt(key string, time time.Time) (bool, error)
	Expires(key string, seconds time.Duration) (bool, error)
	Get(key string) (string, error)
	GetBit(key string, offset int64) (bool, error)
	GeoAdd(key string, locations ...message.RedisGeoLocation) (int64, error)
	GeoDist(key string, member1, member2, unit string) (float64, error)
	GeoPos(key string, members ...string) ([]*message.RedisGeoPosition, error)
	GeoRadius(key string, longitude, latitude float64, query message.RedisGeoRadiusQuery) ([]message.RedisGeoLocation, error)
	GeoRadiusByMember(key string, member string, query message.RedisGeoRadiusQuery) ([]message.RedisGeoLocation, error)
	HDel(key string, fields ...string) (int64, error)
	HExists(key, field string) (bool, error)
	HGet(key, field string) (string, error)
	HGetAll(key string) (map[string]string, error)
	HIncrBy(key, field string, increment int64) (int64, error)
	HIncrByFloat(key, field string, increment float64) (float64, error)
	HLen(key string) (int64, error)
	HKeys(key string) ([]string, error)
	HMGet(key string, fields ...string) ([]string, error)
	HMSet(key string, fieldOrValues ...string) error
	HScan(key string, cursor uint64, match string, count int64) (map[string]string, uint64, error)
	HSet(key, field, value string) (bool, error)
	HSetNX(key, field, value string) (bool, error)
	HStrLen(key, field string) (int64, error)
	HVals(key string) ([]string, error)
	Incr(key string) (int64, error)
	IncrBy(key string, increment int64) (int64, error)
	LIndex(key string, index int64) (string, error)
	LLen(key string) (int64, error)
	LPop(key string) (string, error)
	LPush(key string, values ...string) (int64, error)
	LPushX(key string, value string) (int64, error)
	LRange(key string, start, stop int64) ([]string, error)
	LRem(key string, count int64, value string) (int64, error)
	LSet(key string, index int64, value string) (bool, error)
	LTrim(key string, start, stop int64) (bool, error)
	RPop(key string) (string, error)
	RPush(key string, values ...string) (int64, error)
	RPushX(key string, value string) (int64, error)
	SAdd(key string, members ...string) (int64, error)
	SCard(key string) (int64, error)
	Set(string, string, ...interface{}) (bool, error)
	SetBit(key string, offset int64, value bool) (bool, error)
	SIsMember(key, member string) (bool, error)
	SMembers(key string) ([]string, error)
	SPop(key string) (string, error)
	Time() (time.Time, error)
	TTL(key string) (time.Duration, error)
	ZAdd(key string, members ...message.RedisZMember) (int64, error)
	ZCard(key string) (int64, error)
	ZCount(key string, min, max float64) (int64, error)
	ZIncrBy(key string, increment float64, member string) (float64, error)
	ZRange(key string, start, stop int64, withscores bool) ([]message.RedisZMember, error)
	ZRangeByScore(key string, min, max string, opt message.RedisZRangeByScore) ([]message.RedisZMember, error)
	ZRank(key, member string) (int64, error)
	ZRem(key string, members ...string) (int64, error)
	ZRemRangeByRank(key string, start, stop int64) (int64, error)
	ZRemRangeByScore(key string, min, max float64) (int64, error)
	ZRevRange(key string, start, stop int64, withScores bool) ([]message.RedisZMember, error)
	ZRevRangeByScore(key string, min, max string, opt message.RedisZRangeByScore) ([]message.RedisZMember, error)
	ZRevRank(key, member string) (int64, error)
	ZScan(key string, cursor uint64, match string, count int64) ([]message.RedisZMember, uint64, error)
	ZScore(key, member string) (float64, error)
}

redis接口

type IRpc added in v1.2.0

type IRpc interface {
	// 调用
	Call(string, interface{}) error
	// 调用(忽略响应错误)
	CallWithoutResponseError(string, interface{}) error
	// 设置请求体
	SetBody(any) IRpc
	// 设置头
	SetHeader(map[string]string) IRpc
}

远程过程调用

type IRpcFactory added in v1.2.0

type IRpcFactory interface {
	// 创建rpc
	Build() IRpc
}

rpc工厂

type IStringGenerator added in v1.0.0

type IStringGenerator interface {
	Generate() string
}

字符串生成器

type ITraceable added in v1.0.0

type ITraceable interface {
	WithContext(ctx context.Context) reflect.Value
}

跟踪接口

type IUnitOfWork

type IUnitOfWork interface {
	// 提交
	Commit() error
	// 注册提交后事件
	RegisterAfter(func() error, string)
}

工作单元

type IUnitOfWorkRepository

type IUnitOfWorkRepository interface {
	IUnitOfWork

	RegisterAdd(entry contract.IDbModel)
	RegisterSave(entry contract.IDbModel)
	RegisterRemove(entry contract.IDbModel)
}

工作单元仓储

type IUserRandSeedService added in v1.4.0

type IUserRandSeedService interface {
	// 获取
	Get(IUnitOfWork, int, int) (int, error)
	// 使用
	Use(IUnitOfWork, int) (int, error)
}

用户随机种子服务

type IUserRewardService added in v1.4.0

type IUserRewardService interface {
	// 获取结果
	FindResults(IUnitOfWork, [][]message.Reward, string, string) ([]message.ChangeValue, error)
	// 预览
	Preview(IUnitOfWork, [][]message.Reward, string) ([]message.ChangeValue, error)
}

用户奖励服务

type IUserService added in v1.4.0

type IUserService interface {
	// 获取随机种子服务
	GetRandSeedService(string) IUserRandSeedService
	// 获取随机种子服务
	GetRewardService() IUserRewardService
	// 获取数值服务
	GetValueService() IValueService
}

用户服务

type IValueInterceptor added in v1.2.0

type IValueInterceptor interface {
	// 后置
	After(IUnitOfWork, IValueService, message.ChangeValue) error
	// 前置
	Before(IUnitOfWork, IValueService, message.ChangeValue) (bool, error)
}

数值拦截器

type IValueInterceptorFactory added in v1.2.0

type IValueInterceptorFactory interface {
	// 创建拦截器
	Build(message.ChangeValue) (IValueInterceptor, error)
	// 注冊拦截器
	Register(int, IValueInterceptor)
	// 注冊断言拦截器
	RegisterPredicate(func(contract.IEnumItem) bool, IValueInterceptor)
}

数值拦截器工厂

type IValueService added in v1.2.0

type IValueService interface {
	// 验证条件
	CheckConditions(IUnitOfWork, [][]contract.IValueCondition) (bool, error)
	// 获取数量
	GetCount(IUnitOfWork, int) (int64, error)
	// 获取数据
	GetEntry(any) error
	// 更新
	Update(IUnitOfWork, string, []message.ChangeValue) error
}

数值服务

type MockIApi

type MockIApi struct {
	// contains filtered or unexported fields
}

MockIApi is a mock of IApi interface.

func NewMockIApi

func NewMockIApi(ctrl *gomock.Controller) *MockIApi

NewMockIApi creates a new mock instance.

func (*MockIApi) Call

func (m *MockIApi) Call() (any, error)

Call mocks base method.

func (*MockIApi) EXPECT

func (m *MockIApi) EXPECT() *MockIApiMockRecorder

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

type MockIApiFactory

type MockIApiFactory struct {
	// contains filtered or unexported fields
}

MockIApiFactory is a mock of IApiFactory interface.

func NewMockIApiFactory

func NewMockIApiFactory(ctrl *gomock.Controller) *MockIApiFactory

NewMockIApiFactory creates a new mock instance.

func (*MockIApiFactory) Build

func (m *MockIApiFactory) Build(endpoint, api string) (IApi, error)

Build mocks base method.

func (*MockIApiFactory) EXPECT

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

func (*MockIApiFactory) Register

func (m *MockIApiFactory) Register(endpoint, name string, api any)

Register mocks base method.

type MockIApiFactoryMockRecorder

type MockIApiFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIApiFactoryMockRecorder is the mock recorder for MockIApiFactory.

func (*MockIApiFactoryMockRecorder) Build

func (mr *MockIApiFactoryMockRecorder) Build(endpoint, api interface{}) *gomock.Call

Build indicates an expected call of Build.

func (*MockIApiFactoryMockRecorder) Register

func (mr *MockIApiFactoryMockRecorder) Register(endpoint, name, api interface{}) *gomock.Call

Register indicates an expected call of Register.

type MockIApiMockRecorder

type MockIApiMockRecorder struct {
	// contains filtered or unexported fields
}

MockIApiMockRecorder is the mock recorder for MockIApi.

func (*MockIApiMockRecorder) Call

func (mr *MockIApiMockRecorder) Call() *gomock.Call

Call indicates an expected call of Call.

type MockIApiPort added in v1.0.0

type MockIApiPort struct {
	// contains filtered or unexported fields
}

MockIApiPort is a mock of IApiPort interface.

func NewMockIApiPort added in v1.0.0

func NewMockIApiPort(ctrl *gomock.Controller) *MockIApiPort

NewMockIApiPort creates a new mock instance.

func (*MockIApiPort) EXPECT added in v1.0.0

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

func (*MockIApiPort) Listen added in v1.0.0

func (m *MockIApiPort) Listen()

Listen mocks base method.

type MockIApiPortMockRecorder added in v1.0.0

type MockIApiPortMockRecorder struct {
	// contains filtered or unexported fields
}

MockIApiPortMockRecorder is the mock recorder for MockIApiPort.

func (*MockIApiPortMockRecorder) Listen added in v1.0.0

func (mr *MockIApiPortMockRecorder) Listen() *gomock.Call

Listen indicates an expected call of Listen.

type MockICache added in v1.2.0

type MockICache struct {
	// contains filtered or unexported fields
}

MockICache is a mock of ICache interface.

func NewMockICache added in v1.2.0

func NewMockICache(ctrl *gomock.Controller) *MockICache

NewMockICache creates a new mock instance.

func (*MockICache) EXPECT added in v1.2.0

func (m *MockICache) EXPECT() *MockICacheMockRecorder

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

func (*MockICache) Flush added in v1.2.0

func (m *MockICache) Flush() error

Flush mocks base method.

func (*MockICache) Get added in v1.2.0

func (m *MockICache) Get(arg0 string, arg1 any) error

Get mocks base method.

func (*MockICache) GetUpdateOn added in v1.2.0

func (m *MockICache) GetUpdateOn() int64

GetUpdateOn mocks base method.

type MockICacheMockRecorder added in v1.2.0

type MockICacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockICacheMockRecorder is the mock recorder for MockICache.

func (*MockICacheMockRecorder) Flush added in v1.2.0

func (mr *MockICacheMockRecorder) Flush() *gomock.Call

Flush indicates an expected call of Flush.

func (*MockICacheMockRecorder) Get added in v1.2.0

func (mr *MockICacheMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockICacheMockRecorder) GetUpdateOn added in v1.2.0

func (mr *MockICacheMockRecorder) GetUpdateOn() *gomock.Call

GetUpdateOn indicates an expected call of GetUpdateOn.

type MockICommand added in v1.2.0

type MockICommand struct {
	// contains filtered or unexported fields
}

MockICommand is a mock of ICommand interface.

func NewMockICommand added in v1.2.0

func NewMockICommand(ctrl *gomock.Controller) *MockICommand

NewMockICommand creates a new mock instance.

func (*MockICommand) EXPECT added in v1.2.0

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

func (*MockICommand) Exec added in v1.2.0

func (m *MockICommand) Exec() (string, string, error)

Exec mocks base method.

func (*MockICommand) SetDir added in v1.2.0

func (m *MockICommand) SetDir(format string, args ...any) ICommand

SetDir mocks base method.

func (*MockICommand) SetExpires added in v1.2.0

func (m *MockICommand) SetExpires(expires time.Duration) ICommand

SetExpires mocks base method.

type MockICommandFactory added in v1.2.0

type MockICommandFactory struct {
	// contains filtered or unexported fields
}

MockICommandFactory is a mock of ICommandFactory interface.

func NewMockICommandFactory added in v1.2.0

func NewMockICommandFactory(ctrl *gomock.Controller) *MockICommandFactory

NewMockICommandFactory creates a new mock instance.

func (*MockICommandFactory) Build added in v1.2.0

func (m *MockICommandFactory) Build(name string, args ...string) ICommand

Build mocks base method.

func (*MockICommandFactory) EXPECT added in v1.2.0

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

type MockICommandFactoryMockRecorder added in v1.2.0

type MockICommandFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockICommandFactoryMockRecorder is the mock recorder for MockICommandFactory.

func (*MockICommandFactoryMockRecorder) Build added in v1.2.0

func (mr *MockICommandFactoryMockRecorder) Build(name interface{}, args ...interface{}) *gomock.Call

Build indicates an expected call of Build.

type MockICommandMockRecorder added in v1.2.0

type MockICommandMockRecorder struct {
	// contains filtered or unexported fields
}

MockICommandMockRecorder is the mock recorder for MockICommand.

func (*MockICommandMockRecorder) Exec added in v1.2.0

func (mr *MockICommandMockRecorder) Exec() *gomock.Call

Exec indicates an expected call of Exec.

func (*MockICommandMockRecorder) SetDir added in v1.2.0

func (mr *MockICommandMockRecorder) SetDir(format interface{}, args ...interface{}) *gomock.Call

SetDir indicates an expected call of SetDir.

func (*MockICommandMockRecorder) SetExpires added in v1.2.0

func (mr *MockICommandMockRecorder) SetExpires(expires interface{}) *gomock.Call

SetExpires indicates an expected call of SetExpires.

type MockIConfigLoader added in v1.0.0

type MockIConfigLoader struct {
	// contains filtered or unexported fields
}

MockIConfigLoader is a mock of IConfigLoader interface.

func NewMockIConfigLoader added in v1.0.0

func NewMockIConfigLoader(ctrl *gomock.Controller) *MockIConfigLoader

NewMockIConfigLoader creates a new mock instance.

func (*MockIConfigLoader) EXPECT added in v1.0.0

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

func (*MockIConfigLoader) Load added in v1.0.0

func (m *MockIConfigLoader) Load(v any) error

Load mocks base method.

type MockIConfigLoaderMockRecorder added in v1.0.0

type MockIConfigLoaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockIConfigLoaderMockRecorder is the mock recorder for MockIConfigLoader.

func (*MockIConfigLoaderMockRecorder) Load added in v1.0.0

func (mr *MockIConfigLoaderMockRecorder) Load(v interface{}) *gomock.Call

Load indicates an expected call of Load.

type MockICrypto added in v1.4.0

type MockICrypto struct {
	// contains filtered or unexported fields
}

MockICrypto is a mock of ICrypto interface.

func NewMockICrypto added in v1.4.0

func NewMockICrypto(ctrl *gomock.Controller) *MockICrypto

NewMockICrypto creates a new mock instance.

func (*MockICrypto) Compare added in v1.4.0

func (m *MockICrypto) Compare(arg0, arg1 []byte) (bool, error)

Compare mocks base method.

func (*MockICrypto) Decrypt added in v1.4.0

func (m *MockICrypto) Decrypt(arg0 []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockICrypto) EXPECT added in v1.4.0

func (m *MockICrypto) EXPECT() *MockICryptoMockRecorder

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

func (*MockICrypto) Encrypt added in v1.4.0

func (m *MockICrypto) Encrypt(arg0 []byte) ([]byte, error)

Encrypt mocks base method.

type MockICryptoMockRecorder added in v1.4.0

type MockICryptoMockRecorder struct {
	// contains filtered or unexported fields
}

MockICryptoMockRecorder is the mock recorder for MockICrypto.

func (*MockICryptoMockRecorder) Compare added in v1.4.0

func (mr *MockICryptoMockRecorder) Compare(arg0, arg1 interface{}) *gomock.Call

Compare indicates an expected call of Compare.

func (*MockICryptoMockRecorder) Decrypt added in v1.4.0

func (mr *MockICryptoMockRecorder) Decrypt(arg0 interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockICryptoMockRecorder) Encrypt added in v1.4.0

func (mr *MockICryptoMockRecorder) Encrypt(arg0 interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

type MockIDbFactory

type MockIDbFactory struct {
	// contains filtered or unexported fields
}

MockIDbFactory is a mock of IDbFactory interface.

func NewMockIDbFactory

func NewMockIDbFactory(ctrl *gomock.Controller) *MockIDbFactory

NewMockIDbFactory creates a new mock instance.

func (*MockIDbFactory) Db

func (m *MockIDbFactory) Db(entry contract.IDbModel, extra ...any) IDbRepository

Db mocks base method.

func (*MockIDbFactory) EXPECT

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

func (*MockIDbFactory) Uow

func (m *MockIDbFactory) Uow() IUnitOfWork

Uow mocks base method.

type MockIDbFactoryMockRecorder

type MockIDbFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIDbFactoryMockRecorder is the mock recorder for MockIDbFactory.

func (*MockIDbFactoryMockRecorder) Db

func (mr *MockIDbFactoryMockRecorder) Db(entry interface{}, extra ...interface{}) *gomock.Call

Db indicates an expected call of Db.

func (*MockIDbFactoryMockRecorder) Uow

Uow indicates an expected call of Uow.

type MockIDbQuery

type MockIDbQuery struct {
	// contains filtered or unexported fields
}

MockIDbQuery is a mock of IDbQuery interface

func NewMockIDbQuery

func NewMockIDbQuery(ctrl *gomock.Controller) *MockIDbQuery

NewMockIDbQuery creates a new mock instance

func (*MockIDbQuery) Count

func (m *MockIDbQuery) Count() (int64, error)

Count mocks base method

func (*MockIDbQuery) EXPECT

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

func (*MockIDbQuery) Order

func (m *MockIDbQuery) Order(fields ...string) IDbQuery

Order mocks base method

func (*MockIDbQuery) OrderByDesc

func (m *MockIDbQuery) OrderByDesc(fields ...string) IDbQuery

OrderByDesc mocks base method

func (*MockIDbQuery) Skip

func (m *MockIDbQuery) Skip(v int) IDbQuery

Skip mocks base method

func (*MockIDbQuery) Take

func (m *MockIDbQuery) Take(v int) IDbQuery

Take mocks base method

func (*MockIDbQuery) ToArray

func (m *MockIDbQuery) ToArray(dst interface{}) error

ToArray mocks base method

func (*MockIDbQuery) Where

func (m *MockIDbQuery) Where(args ...interface{}) IDbQuery

Where mocks base method

type MockIDbQueryMockRecorder

type MockIDbQueryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIDbQueryMockRecorder is the mock recorder for MockIDbQuery

func (*MockIDbQueryMockRecorder) Count

func (mr *MockIDbQueryMockRecorder) Count() *gomock.Call

Count indicates an expected call of Count

func (*MockIDbQueryMockRecorder) Order

func (mr *MockIDbQueryMockRecorder) Order(fields ...interface{}) *gomock.Call

Order indicates an expected call of Order

func (*MockIDbQueryMockRecorder) OrderByDesc

func (mr *MockIDbQueryMockRecorder) OrderByDesc(fields ...interface{}) *gomock.Call

OrderByDesc indicates an expected call of OrderByDesc

func (*MockIDbQueryMockRecorder) Skip

func (mr *MockIDbQueryMockRecorder) Skip(v interface{}) *gomock.Call

Skip indicates an expected call of Skip

func (*MockIDbQueryMockRecorder) Take

func (mr *MockIDbQueryMockRecorder) Take(v interface{}) *gomock.Call

Take indicates an expected call of Take

func (*MockIDbQueryMockRecorder) ToArray

func (mr *MockIDbQueryMockRecorder) ToArray(dst interface{}) *gomock.Call

ToArray indicates an expected call of ToArray

func (*MockIDbQueryMockRecorder) Where

func (mr *MockIDbQueryMockRecorder) Where(args ...interface{}) *gomock.Call

Where indicates an expected call of Where

type MockIDbRepository

type MockIDbRepository struct {
	// contains filtered or unexported fields
}

MockIDbRepository is a mock of IDbRepository interface

func NewMockIDbRepository

func NewMockIDbRepository(ctrl *gomock.Controller) *MockIDbRepository

NewMockIDbRepository creates a new mock instance

func (*MockIDbRepository) Add

func (m *MockIDbRepository) Add(entry contract.IDbModel) error

Add mocks base method

func (*MockIDbRepository) EXPECT

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

func (*MockIDbRepository) Query

func (m *MockIDbRepository) Query() IDbQuery

Query mocks base method

func (*MockIDbRepository) Remove

func (m *MockIDbRepository) Remove(entry contract.IDbModel) error

Remove mocks base method

func (*MockIDbRepository) Save

func (m *MockIDbRepository) Save(entry contract.IDbModel) error

Save mocks base method

type MockIDbRepositoryMockRecorder

type MockIDbRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIDbRepositoryMockRecorder is the mock recorder for MockIDbRepository

func (*MockIDbRepositoryMockRecorder) Add

func (mr *MockIDbRepositoryMockRecorder) Add(entry interface{}) *gomock.Call

Add indicates an expected call of Add

func (*MockIDbRepositoryMockRecorder) Query

Query indicates an expected call of Query

func (*MockIDbRepositoryMockRecorder) Remove

func (mr *MockIDbRepositoryMockRecorder) Remove(entry interface{}) *gomock.Call

Remove indicates an expected call of Remove

func (*MockIDbRepositoryMockRecorder) Save

func (mr *MockIDbRepositoryMockRecorder) Save(entry interface{}) *gomock.Call

Save indicates an expected call of Save

type MockIEnumFactory added in v1.2.0

type MockIEnumFactory struct {
	// contains filtered or unexported fields
}

MockIEnumFactory is a mock of IEnumFactory interface.

func NewMockIEnumFactory added in v1.2.0

func NewMockIEnumFactory(ctrl *gomock.Controller) *MockIEnumFactory

NewMockIEnumFactory creates a new mock instance.

func (*MockIEnumFactory) Build added in v1.2.0

func (m *MockIEnumFactory) Build(arg0 string, arg1 interface{}) error

Build mocks base method.

func (*MockIEnumFactory) EXPECT added in v1.2.0

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

type MockIEnumFactoryMockRecorder added in v1.2.0

type MockIEnumFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIEnumFactoryMockRecorder is the mock recorder for MockIEnumFactory.

func (*MockIEnumFactoryMockRecorder) Build added in v1.2.0

func (mr *MockIEnumFactoryMockRecorder) Build(arg0, arg1 interface{}) *gomock.Call

Build indicates an expected call of Build.

type MockIFileEntry added in v1.2.0

type MockIFileEntry struct {
	// contains filtered or unexported fields
}

MockIFileEntry is a mock of IFileEntry interface.

func NewMockIFileEntry added in v1.2.0

func NewMockIFileEntry(ctrl *gomock.Controller) *MockIFileEntry

NewMockIFileEntry creates a new mock instance.

func (*MockIFileEntry) EXPECT added in v1.2.0

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

func (*MockIFileEntry) Exists added in v1.2.0

func (m *MockIFileEntry) Exists() bool

Exists mocks base method.

func (*MockIFileEntry) GetPath added in v1.2.0

func (m *MockIFileEntry) GetPath() string

GetPath mocks base method.

func (*MockIFileEntry) MoveTo added in v1.2.0

func (m *MockIFileEntry) MoveTo(arg0 ...string) error

MoveTo mocks base method.

func (*MockIFileEntry) Remove added in v1.2.0

func (m *MockIFileEntry) Remove() error

Remove mocks base method.

type MockIFileEntryMockRecorder added in v1.2.0

type MockIFileEntryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIFileEntryMockRecorder is the mock recorder for MockIFileEntry.

func (*MockIFileEntryMockRecorder) Exists added in v1.2.0

func (mr *MockIFileEntryMockRecorder) Exists() *gomock.Call

Exists indicates an expected call of Exists.

func (*MockIFileEntryMockRecorder) GetPath added in v1.2.0

func (mr *MockIFileEntryMockRecorder) GetPath() *gomock.Call

GetPath indicates an expected call of GetPath.

func (*MockIFileEntryMockRecorder) MoveTo added in v1.2.0

func (mr *MockIFileEntryMockRecorder) MoveTo(arg0 ...interface{}) *gomock.Call

MoveTo indicates an expected call of MoveTo.

func (*MockIFileEntryMockRecorder) Remove added in v1.2.0

func (mr *MockIFileEntryMockRecorder) Remove() *gomock.Call

Remove indicates an expected call of Remove.

type MockIFileFactory added in v1.2.0

type MockIFileFactory struct {
	// contains filtered or unexported fields
}

MockIFileFactory is a mock of IFileFactory interface.

func NewMockIFileFactory added in v1.2.0

func NewMockIFileFactory(ctrl *gomock.Controller) *MockIFileFactory

NewMockIFileFactory creates a new mock instance.

func (*MockIFileFactory) BuildFileEntry added in v1.2.0

func (m *MockIFileFactory) BuildFileEntry(paths ...string) IFileEntry

BuildFileEntry mocks base method.

func (*MockIFileFactory) EXPECT added in v1.2.0

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

type MockIFileFactoryMockRecorder added in v1.2.0

type MockIFileFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIFileFactoryMockRecorder is the mock recorder for MockIFileFactory.

func (*MockIFileFactoryMockRecorder) BuildFileEntry added in v1.2.0

func (mr *MockIFileFactoryMockRecorder) BuildFileEntry(paths ...interface{}) *gomock.Call

BuildFileEntry indicates an expected call of BuildFileEntry.

type MockILog

type MockILog struct {
	// contains filtered or unexported fields
}

MockILog is a mock of ILog interface.

func NewMockILog

func NewMockILog(ctrl *gomock.Controller) *MockILog

NewMockILog creates a new mock instance.

func (*MockILog) AddLabel

func (m *MockILog) AddLabel(k, f string, v ...any) ILog

AddLabel mocks base method.

func (*MockILog) Debug

func (m *MockILog) Debug()

Debug mocks base method.

func (*MockILog) EXPECT

func (m *MockILog) EXPECT() *MockILogMockRecorder

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

func (*MockILog) Error

func (m *MockILog) Error(err error)

Error mocks base method.

func (*MockILog) Info

func (m *MockILog) Info()

Info mocks base method.

func (*MockILog) Warning

func (m *MockILog) Warning()

Warning mocks base method.

type MockILogFactory

type MockILogFactory struct {
	// contains filtered or unexported fields
}

MockILogFactory is a mock of ILogFactory interface.

func NewMockILogFactory

func NewMockILogFactory(ctrl *gomock.Controller) *MockILogFactory

NewMockILogFactory creates a new mock instance.

func (*MockILogFactory) Build

func (m *MockILogFactory) Build() ILog

Build mocks base method.

func (*MockILogFactory) EXPECT

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

type MockILogFactoryMockRecorder

type MockILogFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockILogFactoryMockRecorder is the mock recorder for MockILogFactory.

func (*MockILogFactoryMockRecorder) Build

Build indicates an expected call of Build.

type MockILogMockRecorder

type MockILogMockRecorder struct {
	// contains filtered or unexported fields
}

MockILogMockRecorder is the mock recorder for MockILog.

func (*MockILogMockRecorder) AddLabel

func (mr *MockILogMockRecorder) AddLabel(k, f interface{}, v ...interface{}) *gomock.Call

AddLabel indicates an expected call of AddLabel.

func (*MockILogMockRecorder) Debug

func (mr *MockILogMockRecorder) Debug() *gomock.Call

Debug indicates an expected call of Debug.

func (*MockILogMockRecorder) Error

func (mr *MockILogMockRecorder) Error(err interface{}) *gomock.Call

Error indicates an expected call of Error.

func (*MockILogMockRecorder) Info

func (mr *MockILogMockRecorder) Info() *gomock.Call

Info indicates an expected call of Info.

func (*MockILogMockRecorder) Warning

func (mr *MockILogMockRecorder) Warning() *gomock.Call

Warning indicates an expected call of Warning.

type MockINowTime

type MockINowTime struct {
	// contains filtered or unexported fields
}

MockINowTime is a mock of INowTime interface.

func NewMockINowTime

func NewMockINowTime(ctrl *gomock.Controller) *MockINowTime

NewMockINowTime creates a new mock instance.

func (*MockINowTime) EXPECT

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

func (*MockINowTime) IsSame added in v1.2.0

func (m *MockINowTime) IsSame(arg0 int64, arg1 string) bool

IsSame mocks base method.

func (*MockINowTime) Unix

func (m *MockINowTime) Unix() int64

Unix mocks base method.

type MockINowTimeMockRecorder

type MockINowTimeMockRecorder struct {
	// contains filtered or unexported fields
}

MockINowTimeMockRecorder is the mock recorder for MockINowTime.

func (*MockINowTimeMockRecorder) IsSame added in v1.2.0

func (mr *MockINowTimeMockRecorder) IsSame(arg0, arg1 interface{}) *gomock.Call

IsSame indicates an expected call of IsSame.

func (*MockINowTimeMockRecorder) Unix

func (mr *MockINowTimeMockRecorder) Unix() *gomock.Call

Unix indicates an expected call of Unix.

type MockIOsPath added in v1.0.0

type MockIOsPath struct {
	// contains filtered or unexported fields
}

MockIOsPath is a mock of IOsPath interface.

func NewMockIOsPath added in v1.0.0

func NewMockIOsPath(ctrl *gomock.Controller) *MockIOsPath

NewMockIOsPath creates a new mock instance.

func (*MockIOsPath) EXPECT added in v1.0.0

func (m *MockIOsPath) EXPECT() *MockIOsPathMockRecorder

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

func (*MockIOsPath) Getwd added in v1.4.1

func (m *MockIOsPath) Getwd() string

Getwd mocks base method.

func (*MockIOsPath) Join added in v1.0.0

func (m *MockIOsPath) Join(paths ...string) string

Join mocks base method.

type MockIOsPathMockRecorder added in v1.0.0

type MockIOsPathMockRecorder struct {
	// contains filtered or unexported fields
}

MockIOsPathMockRecorder is the mock recorder for MockIOsPath.

func (*MockIOsPathMockRecorder) Getwd added in v1.4.1

func (mr *MockIOsPathMockRecorder) Getwd() *gomock.Call

Getwd indicates an expected call of Getwd.

func (*MockIOsPathMockRecorder) Join added in v1.0.0

func (mr *MockIOsPathMockRecorder) Join(paths ...interface{}) *gomock.Call

Join indicates an expected call of Join.

type MockIRedis

type MockIRedis struct {
	// contains filtered or unexported fields
}

MockIRedis is a mock of IRedis interface.

func NewMockIRedis

func NewMockIRedis(ctrl *gomock.Controller) *MockIRedis

NewMockIRedis creates a new mock instance.

func (*MockIRedis) BLPop added in v1.0.0

func (m *MockIRedis) BLPop(timeout time.Duration, keys ...string) ([]string, error)

BLPop mocks base method.

func (*MockIRedis) BRPop added in v1.0.0

func (m *MockIRedis) BRPop(timeout time.Duration, keys ...string) ([]string, error)

BRPop mocks base method.

func (*MockIRedis) BitCount added in v1.0.0

func (m *MockIRedis) BitCount(key string, start, end int64) (int64, error)

BitCount mocks base method.

func (*MockIRedis) BitOp added in v1.0.0

func (m *MockIRedis) BitOp(op, destKey string, keys ...string) (bool, error)

BitOp mocks base method.

func (*MockIRedis) BitPos added in v1.0.0

func (m *MockIRedis) BitPos(key string, bit bool, start, end int64) (int64, error)

BitPos mocks base method.

func (*MockIRedis) Close added in v1.0.0

func (m *MockIRedis) Close() error

Close mocks base method.

func (*MockIRedis) Decr added in v1.0.0

func (m *MockIRedis) Decr(key string) (int64, error)

Decr mocks base method.

func (*MockIRedis) DecrBy added in v1.0.0

func (m *MockIRedis) DecrBy(key string, decrement int64) (int64, error)

DecrBy mocks base method.

func (*MockIRedis) Del added in v1.0.0

func (m *MockIRedis) Del(arg0 ...string) (int64, error)

Del mocks base method.

func (*MockIRedis) EXPECT

func (m *MockIRedis) EXPECT() *MockIRedisMockRecorder

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

func (*MockIRedis) Exists added in v1.0.0

func (m *MockIRedis) Exists(arg0 string) (bool, error)

Exists mocks base method.

func (*MockIRedis) ExpireAt added in v1.0.0

func (m *MockIRedis) ExpireAt(key string, time time.Time) (bool, error)

ExpireAt mocks base method.

func (*MockIRedis) Expires added in v1.0.0

func (m *MockIRedis) Expires(key string, seconds time.Duration) (bool, error)

Expires mocks base method.

func (*MockIRedis) GeoAdd added in v1.0.0

func (m *MockIRedis) GeoAdd(key string, locations ...message.RedisGeoLocation) (int64, error)

GeoAdd mocks base method.

func (*MockIRedis) GeoDist added in v1.0.0

func (m *MockIRedis) GeoDist(key, member1, member2, unit string) (float64, error)

GeoDist mocks base method.

func (*MockIRedis) GeoPos added in v1.0.0

func (m *MockIRedis) GeoPos(key string, members ...string) ([]*message.RedisGeoPosition, error)

GeoPos mocks base method.

func (*MockIRedis) GeoRadius added in v1.0.0

func (m *MockIRedis) GeoRadius(key string, longitude, latitude float64, query message.RedisGeoRadiusQuery) ([]message.RedisGeoLocation, error)

GeoRadius mocks base method.

func (*MockIRedis) GeoRadiusByMember added in v1.0.0

func (m *MockIRedis) GeoRadiusByMember(key, member string, query message.RedisGeoRadiusQuery) ([]message.RedisGeoLocation, error)

GeoRadiusByMember mocks base method.

func (*MockIRedis) Get

func (m *MockIRedis) Get(key string) (string, error)

Get mocks base method.

func (*MockIRedis) GetBit added in v1.0.0

func (m *MockIRedis) GetBit(key string, offset int64) (bool, error)

GetBit mocks base method.

func (*MockIRedis) HDel added in v1.0.0

func (m *MockIRedis) HDel(key string, fields ...string) (int64, error)

HDel mocks base method.

func (*MockIRedis) HExists added in v1.0.0

func (m *MockIRedis) HExists(key, field string) (bool, error)

HExists mocks base method.

func (*MockIRedis) HGet added in v1.0.0

func (m *MockIRedis) HGet(key, field string) (string, error)

HGet mocks base method.

func (*MockIRedis) HGetAll added in v1.0.0

func (m *MockIRedis) HGetAll(key string) (map[string]string, error)

HGetAll mocks base method.

func (*MockIRedis) HIncrBy added in v1.0.0

func (m *MockIRedis) HIncrBy(key, field string, increment int64) (int64, error)

HIncrBy mocks base method.

func (*MockIRedis) HIncrByFloat added in v1.0.0

func (m *MockIRedis) HIncrByFloat(key, field string, increment float64) (float64, error)

HIncrByFloat mocks base method.

func (*MockIRedis) HKeys added in v1.0.0

func (m *MockIRedis) HKeys(key string) ([]string, error)

HKeys mocks base method.

func (*MockIRedis) HLen added in v1.0.0

func (m *MockIRedis) HLen(key string) (int64, error)

HLen mocks base method.

func (*MockIRedis) HMGet added in v1.0.0

func (m *MockIRedis) HMGet(key string, fields ...string) ([]string, error)

HMGet mocks base method.

func (*MockIRedis) HMSet added in v1.0.0

func (m *MockIRedis) HMSet(key string, fieldOrValues ...string) error

HMSet mocks base method.

func (*MockIRedis) HScan added in v1.0.0

func (m *MockIRedis) HScan(key string, cursor uint64, match string, count int64) (map[string]string, uint64, error)

HScan mocks base method.

func (*MockIRedis) HSet added in v1.0.0

func (m *MockIRedis) HSet(key, field, value string) (bool, error)

HSet mocks base method.

func (*MockIRedis) HSetNX added in v1.0.0

func (m *MockIRedis) HSetNX(key, field, value string) (bool, error)

HSetNX mocks base method.

func (*MockIRedis) HStrLen added in v1.0.0

func (m *MockIRedis) HStrLen(key, field string) (int64, error)

HStrLen mocks base method.

func (*MockIRedis) HVals added in v1.0.0

func (m *MockIRedis) HVals(key string) ([]string, error)

HVals mocks base method.

func (*MockIRedis) Incr added in v1.0.0

func (m *MockIRedis) Incr(key string) (int64, error)

Incr mocks base method.

func (*MockIRedis) IncrBy added in v1.0.0

func (m *MockIRedis) IncrBy(key string, increment int64) (int64, error)

IncrBy mocks base method.

func (*MockIRedis) LIndex added in v1.0.0

func (m *MockIRedis) LIndex(key string, index int64) (string, error)

LIndex mocks base method.

func (*MockIRedis) LLen added in v1.0.0

func (m *MockIRedis) LLen(key string) (int64, error)

LLen mocks base method.

func (*MockIRedis) LPop added in v1.0.0

func (m *MockIRedis) LPop(key string) (string, error)

LPop mocks base method.

func (*MockIRedis) LPush added in v1.0.0

func (m *MockIRedis) LPush(key string, values ...string) (int64, error)

LPush mocks base method.

func (*MockIRedis) LPushX added in v1.0.0

func (m *MockIRedis) LPushX(key, value string) (int64, error)

LPushX mocks base method.

func (*MockIRedis) LRange added in v1.0.0

func (m *MockIRedis) LRange(key string, start, stop int64) ([]string, error)

LRange mocks base method.

func (*MockIRedis) LRem added in v1.0.0

func (m *MockIRedis) LRem(key string, count int64, value string) (int64, error)

LRem mocks base method.

func (*MockIRedis) LSet added in v1.0.0

func (m *MockIRedis) LSet(key string, index int64, value string) (bool, error)

LSet mocks base method.

func (*MockIRedis) LTrim added in v1.0.0

func (m *MockIRedis) LTrim(key string, start, stop int64) (bool, error)

LTrim mocks base method.

func (*MockIRedis) RPop added in v1.0.0

func (m *MockIRedis) RPop(key string) (string, error)

RPop mocks base method.

func (*MockIRedis) RPush added in v1.0.0

func (m *MockIRedis) RPush(key string, values ...string) (int64, error)

RPush mocks base method.

func (*MockIRedis) RPushX added in v1.0.0

func (m *MockIRedis) RPushX(key, value string) (int64, error)

RPushX mocks base method.

func (*MockIRedis) SAdd added in v1.0.0

func (m *MockIRedis) SAdd(key string, members ...string) (int64, error)

SAdd mocks base method.

func (*MockIRedis) SCard added in v1.0.0

func (m *MockIRedis) SCard(key string) (int64, error)

SCard mocks base method.

func (*MockIRedis) SIsMember added in v1.0.0

func (m *MockIRedis) SIsMember(key, member string) (bool, error)

SIsMember mocks base method.

func (*MockIRedis) SMembers added in v1.0.0

func (m *MockIRedis) SMembers(key string) ([]string, error)

SMembers mocks base method.

func (*MockIRedis) SPop added in v1.0.0

func (m *MockIRedis) SPop(key string) (string, error)

SPop mocks base method.

func (*MockIRedis) Set

func (m *MockIRedis) Set(arg0, arg1 string, arg2 ...interface{}) (bool, error)

Set mocks base method.

func (*MockIRedis) SetBit added in v1.0.0

func (m *MockIRedis) SetBit(key string, offset int64, value bool) (bool, error)

SetBit mocks base method.

func (*MockIRedis) TTL added in v1.0.0

func (m *MockIRedis) TTL(key string) (time.Duration, error)

TTL mocks base method.

func (*MockIRedis) Time added in v1.0.0

func (m *MockIRedis) Time() (time.Time, error)

Time mocks base method.

func (*MockIRedis) ZAdd added in v1.0.0

func (m *MockIRedis) ZAdd(key string, members ...message.RedisZMember) (int64, error)

ZAdd mocks base method.

func (*MockIRedis) ZCard added in v1.0.0

func (m *MockIRedis) ZCard(key string) (int64, error)

ZCard mocks base method.

func (*MockIRedis) ZCount added in v1.0.0

func (m *MockIRedis) ZCount(key string, min, max float64) (int64, error)

ZCount mocks base method.

func (*MockIRedis) ZIncrBy added in v1.0.0

func (m *MockIRedis) ZIncrBy(key string, increment float64, member string) (float64, error)

ZIncrBy mocks base method.

func (*MockIRedis) ZRange added in v1.0.0

func (m *MockIRedis) ZRange(key string, start, stop int64, withscores bool) ([]message.RedisZMember, error)

ZRange mocks base method.

func (*MockIRedis) ZRangeByScore added in v1.0.0

func (m *MockIRedis) ZRangeByScore(key, min, max string, opt message.RedisZRangeByScore) ([]message.RedisZMember, error)

ZRangeByScore mocks base method.

func (*MockIRedis) ZRank added in v1.0.0

func (m *MockIRedis) ZRank(key, member string) (int64, error)

ZRank mocks base method.

func (*MockIRedis) ZRem added in v1.0.0

func (m *MockIRedis) ZRem(key string, members ...string) (int64, error)

ZRem mocks base method.

func (*MockIRedis) ZRemRangeByRank added in v1.0.0

func (m *MockIRedis) ZRemRangeByRank(key string, start, stop int64) (int64, error)

ZRemRangeByRank mocks base method.

func (*MockIRedis) ZRemRangeByScore added in v1.0.0

func (m *MockIRedis) ZRemRangeByScore(key string, min, max float64) (int64, error)

ZRemRangeByScore mocks base method.

func (*MockIRedis) ZRevRange added in v1.0.0

func (m *MockIRedis) ZRevRange(key string, start, stop int64, withScores bool) ([]message.RedisZMember, error)

ZRevRange mocks base method.

func (*MockIRedis) ZRevRangeByScore added in v1.0.0

func (m *MockIRedis) ZRevRangeByScore(key, min, max string, opt message.RedisZRangeByScore) ([]message.RedisZMember, error)

ZRevRangeByScore mocks base method.

func (*MockIRedis) ZRevRank added in v1.0.0

func (m *MockIRedis) ZRevRank(key, member string) (int64, error)

ZRevRank mocks base method.

func (*MockIRedis) ZScan added in v1.0.0

func (m *MockIRedis) ZScan(key string, cursor uint64, match string, count int64) ([]message.RedisZMember, uint64, error)

ZScan mocks base method.

func (*MockIRedis) ZScore added in v1.0.0

func (m *MockIRedis) ZScore(key, member string) (float64, error)

ZScore mocks base method.

type MockIRedisMockRecorder

type MockIRedisMockRecorder struct {
	// contains filtered or unexported fields
}

MockIRedisMockRecorder is the mock recorder for MockIRedis.

func (*MockIRedisMockRecorder) BLPop added in v1.0.0

func (mr *MockIRedisMockRecorder) BLPop(timeout interface{}, keys ...interface{}) *gomock.Call

BLPop indicates an expected call of BLPop.

func (*MockIRedisMockRecorder) BRPop added in v1.0.0

func (mr *MockIRedisMockRecorder) BRPop(timeout interface{}, keys ...interface{}) *gomock.Call

BRPop indicates an expected call of BRPop.

func (*MockIRedisMockRecorder) BitCount added in v1.0.0

func (mr *MockIRedisMockRecorder) BitCount(key, start, end interface{}) *gomock.Call

BitCount indicates an expected call of BitCount.

func (*MockIRedisMockRecorder) BitOp added in v1.0.0

func (mr *MockIRedisMockRecorder) BitOp(op, destKey interface{}, keys ...interface{}) *gomock.Call

BitOp indicates an expected call of BitOp.

func (*MockIRedisMockRecorder) BitPos added in v1.0.0

func (mr *MockIRedisMockRecorder) BitPos(key, bit, start, end interface{}) *gomock.Call

BitPos indicates an expected call of BitPos.

func (*MockIRedisMockRecorder) Close added in v1.0.0

func (mr *MockIRedisMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockIRedisMockRecorder) Decr added in v1.0.0

func (mr *MockIRedisMockRecorder) Decr(key interface{}) *gomock.Call

Decr indicates an expected call of Decr.

func (*MockIRedisMockRecorder) DecrBy added in v1.0.0

func (mr *MockIRedisMockRecorder) DecrBy(key, decrement interface{}) *gomock.Call

DecrBy indicates an expected call of DecrBy.

func (*MockIRedisMockRecorder) Del added in v1.0.0

func (mr *MockIRedisMockRecorder) Del(arg0 ...interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockIRedisMockRecorder) Exists added in v1.0.0

func (mr *MockIRedisMockRecorder) Exists(arg0 interface{}) *gomock.Call

Exists indicates an expected call of Exists.

func (*MockIRedisMockRecorder) ExpireAt added in v1.0.0

func (mr *MockIRedisMockRecorder) ExpireAt(key, time interface{}) *gomock.Call

ExpireAt indicates an expected call of ExpireAt.

func (*MockIRedisMockRecorder) Expires added in v1.0.0

func (mr *MockIRedisMockRecorder) Expires(key, seconds interface{}) *gomock.Call

Expires indicates an expected call of Expires.

func (*MockIRedisMockRecorder) GeoAdd added in v1.0.0

func (mr *MockIRedisMockRecorder) GeoAdd(key interface{}, locations ...interface{}) *gomock.Call

GeoAdd indicates an expected call of GeoAdd.

func (*MockIRedisMockRecorder) GeoDist added in v1.0.0

func (mr *MockIRedisMockRecorder) GeoDist(key, member1, member2, unit interface{}) *gomock.Call

GeoDist indicates an expected call of GeoDist.

func (*MockIRedisMockRecorder) GeoPos added in v1.0.0

func (mr *MockIRedisMockRecorder) GeoPos(key interface{}, members ...interface{}) *gomock.Call

GeoPos indicates an expected call of GeoPos.

func (*MockIRedisMockRecorder) GeoRadius added in v1.0.0

func (mr *MockIRedisMockRecorder) GeoRadius(key, longitude, latitude, query interface{}) *gomock.Call

GeoRadius indicates an expected call of GeoRadius.

func (*MockIRedisMockRecorder) GeoRadiusByMember added in v1.0.0

func (mr *MockIRedisMockRecorder) GeoRadiusByMember(key, member, query interface{}) *gomock.Call

GeoRadiusByMember indicates an expected call of GeoRadiusByMember.

func (*MockIRedisMockRecorder) Get

func (mr *MockIRedisMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockIRedisMockRecorder) GetBit added in v1.0.0

func (mr *MockIRedisMockRecorder) GetBit(key, offset interface{}) *gomock.Call

GetBit indicates an expected call of GetBit.

func (*MockIRedisMockRecorder) HDel added in v1.0.0

func (mr *MockIRedisMockRecorder) HDel(key interface{}, fields ...interface{}) *gomock.Call

HDel indicates an expected call of HDel.

func (*MockIRedisMockRecorder) HExists added in v1.0.0

func (mr *MockIRedisMockRecorder) HExists(key, field interface{}) *gomock.Call

HExists indicates an expected call of HExists.

func (*MockIRedisMockRecorder) HGet added in v1.0.0

func (mr *MockIRedisMockRecorder) HGet(key, field interface{}) *gomock.Call

HGet indicates an expected call of HGet.

func (*MockIRedisMockRecorder) HGetAll added in v1.0.0

func (mr *MockIRedisMockRecorder) HGetAll(key interface{}) *gomock.Call

HGetAll indicates an expected call of HGetAll.

func (*MockIRedisMockRecorder) HIncrBy added in v1.0.0

func (mr *MockIRedisMockRecorder) HIncrBy(key, field, increment interface{}) *gomock.Call

HIncrBy indicates an expected call of HIncrBy.

func (*MockIRedisMockRecorder) HIncrByFloat added in v1.0.0

func (mr *MockIRedisMockRecorder) HIncrByFloat(key, field, increment interface{}) *gomock.Call

HIncrByFloat indicates an expected call of HIncrByFloat.

func (*MockIRedisMockRecorder) HKeys added in v1.0.0

func (mr *MockIRedisMockRecorder) HKeys(key interface{}) *gomock.Call

HKeys indicates an expected call of HKeys.

func (*MockIRedisMockRecorder) HLen added in v1.0.0

func (mr *MockIRedisMockRecorder) HLen(key interface{}) *gomock.Call

HLen indicates an expected call of HLen.

func (*MockIRedisMockRecorder) HMGet added in v1.0.0

func (mr *MockIRedisMockRecorder) HMGet(key interface{}, fields ...interface{}) *gomock.Call

HMGet indicates an expected call of HMGet.

func (*MockIRedisMockRecorder) HMSet added in v1.0.0

func (mr *MockIRedisMockRecorder) HMSet(key interface{}, fieldOrValues ...interface{}) *gomock.Call

HMSet indicates an expected call of HMSet.

func (*MockIRedisMockRecorder) HScan added in v1.0.0

func (mr *MockIRedisMockRecorder) HScan(key, cursor, match, count interface{}) *gomock.Call

HScan indicates an expected call of HScan.

func (*MockIRedisMockRecorder) HSet added in v1.0.0

func (mr *MockIRedisMockRecorder) HSet(key, field, value interface{}) *gomock.Call

HSet indicates an expected call of HSet.

func (*MockIRedisMockRecorder) HSetNX added in v1.0.0

func (mr *MockIRedisMockRecorder) HSetNX(key, field, value interface{}) *gomock.Call

HSetNX indicates an expected call of HSetNX.

func (*MockIRedisMockRecorder) HStrLen added in v1.0.0

func (mr *MockIRedisMockRecorder) HStrLen(key, field interface{}) *gomock.Call

HStrLen indicates an expected call of HStrLen.

func (*MockIRedisMockRecorder) HVals added in v1.0.0

func (mr *MockIRedisMockRecorder) HVals(key interface{}) *gomock.Call

HVals indicates an expected call of HVals.

func (*MockIRedisMockRecorder) Incr added in v1.0.0

func (mr *MockIRedisMockRecorder) Incr(key interface{}) *gomock.Call

Incr indicates an expected call of Incr.

func (*MockIRedisMockRecorder) IncrBy added in v1.0.0

func (mr *MockIRedisMockRecorder) IncrBy(key, increment interface{}) *gomock.Call

IncrBy indicates an expected call of IncrBy.

func (*MockIRedisMockRecorder) LIndex added in v1.0.0

func (mr *MockIRedisMockRecorder) LIndex(key, index interface{}) *gomock.Call

LIndex indicates an expected call of LIndex.

func (*MockIRedisMockRecorder) LLen added in v1.0.0

func (mr *MockIRedisMockRecorder) LLen(key interface{}) *gomock.Call

LLen indicates an expected call of LLen.

func (*MockIRedisMockRecorder) LPop added in v1.0.0

func (mr *MockIRedisMockRecorder) LPop(key interface{}) *gomock.Call

LPop indicates an expected call of LPop.

func (*MockIRedisMockRecorder) LPush added in v1.0.0

func (mr *MockIRedisMockRecorder) LPush(key interface{}, values ...interface{}) *gomock.Call

LPush indicates an expected call of LPush.

func (*MockIRedisMockRecorder) LPushX added in v1.0.0

func (mr *MockIRedisMockRecorder) LPushX(key, value interface{}) *gomock.Call

LPushX indicates an expected call of LPushX.

func (*MockIRedisMockRecorder) LRange added in v1.0.0

func (mr *MockIRedisMockRecorder) LRange(key, start, stop interface{}) *gomock.Call

LRange indicates an expected call of LRange.

func (*MockIRedisMockRecorder) LRem added in v1.0.0

func (mr *MockIRedisMockRecorder) LRem(key, count, value interface{}) *gomock.Call

LRem indicates an expected call of LRem.

func (*MockIRedisMockRecorder) LSet added in v1.0.0

func (mr *MockIRedisMockRecorder) LSet(key, index, value interface{}) *gomock.Call

LSet indicates an expected call of LSet.

func (*MockIRedisMockRecorder) LTrim added in v1.0.0

func (mr *MockIRedisMockRecorder) LTrim(key, start, stop interface{}) *gomock.Call

LTrim indicates an expected call of LTrim.

func (*MockIRedisMockRecorder) RPop added in v1.0.0

func (mr *MockIRedisMockRecorder) RPop(key interface{}) *gomock.Call

RPop indicates an expected call of RPop.

func (*MockIRedisMockRecorder) RPush added in v1.0.0

func (mr *MockIRedisMockRecorder) RPush(key interface{}, values ...interface{}) *gomock.Call

RPush indicates an expected call of RPush.

func (*MockIRedisMockRecorder) RPushX added in v1.0.0

func (mr *MockIRedisMockRecorder) RPushX(key, value interface{}) *gomock.Call

RPushX indicates an expected call of RPushX.

func (*MockIRedisMockRecorder) SAdd added in v1.0.0

func (mr *MockIRedisMockRecorder) SAdd(key interface{}, members ...interface{}) *gomock.Call

SAdd indicates an expected call of SAdd.

func (*MockIRedisMockRecorder) SCard added in v1.0.0

func (mr *MockIRedisMockRecorder) SCard(key interface{}) *gomock.Call

SCard indicates an expected call of SCard.

func (*MockIRedisMockRecorder) SIsMember added in v1.0.0

func (mr *MockIRedisMockRecorder) SIsMember(key, member interface{}) *gomock.Call

SIsMember indicates an expected call of SIsMember.

func (*MockIRedisMockRecorder) SMembers added in v1.0.0

func (mr *MockIRedisMockRecorder) SMembers(key interface{}) *gomock.Call

SMembers indicates an expected call of SMembers.

func (*MockIRedisMockRecorder) SPop added in v1.0.0

func (mr *MockIRedisMockRecorder) SPop(key interface{}) *gomock.Call

SPop indicates an expected call of SPop.

func (*MockIRedisMockRecorder) Set

func (mr *MockIRedisMockRecorder) Set(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockIRedisMockRecorder) SetBit added in v1.0.0

func (mr *MockIRedisMockRecorder) SetBit(key, offset, value interface{}) *gomock.Call

SetBit indicates an expected call of SetBit.

func (*MockIRedisMockRecorder) TTL added in v1.0.0

func (mr *MockIRedisMockRecorder) TTL(key interface{}) *gomock.Call

TTL indicates an expected call of TTL.

func (*MockIRedisMockRecorder) Time added in v1.0.0

func (mr *MockIRedisMockRecorder) Time() *gomock.Call

Time indicates an expected call of Time.

func (*MockIRedisMockRecorder) ZAdd added in v1.0.0

func (mr *MockIRedisMockRecorder) ZAdd(key interface{}, members ...interface{}) *gomock.Call

ZAdd indicates an expected call of ZAdd.

func (*MockIRedisMockRecorder) ZCard added in v1.0.0

func (mr *MockIRedisMockRecorder) ZCard(key interface{}) *gomock.Call

ZCard indicates an expected call of ZCard.

func (*MockIRedisMockRecorder) ZCount added in v1.0.0

func (mr *MockIRedisMockRecorder) ZCount(key, min, max interface{}) *gomock.Call

ZCount indicates an expected call of ZCount.

func (*MockIRedisMockRecorder) ZIncrBy added in v1.0.0

func (mr *MockIRedisMockRecorder) ZIncrBy(key, increment, member interface{}) *gomock.Call

ZIncrBy indicates an expected call of ZIncrBy.

func (*MockIRedisMockRecorder) ZRange added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRange(key, start, stop, withscores interface{}) *gomock.Call

ZRange indicates an expected call of ZRange.

func (*MockIRedisMockRecorder) ZRangeByScore added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRangeByScore(key, min, max, opt interface{}) *gomock.Call

ZRangeByScore indicates an expected call of ZRangeByScore.

func (*MockIRedisMockRecorder) ZRank added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRank(key, member interface{}) *gomock.Call

ZRank indicates an expected call of ZRank.

func (*MockIRedisMockRecorder) ZRem added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRem(key interface{}, members ...interface{}) *gomock.Call

ZRem indicates an expected call of ZRem.

func (*MockIRedisMockRecorder) ZRemRangeByRank added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRemRangeByRank(key, start, stop interface{}) *gomock.Call

ZRemRangeByRank indicates an expected call of ZRemRangeByRank.

func (*MockIRedisMockRecorder) ZRemRangeByScore added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRemRangeByScore(key, min, max interface{}) *gomock.Call

ZRemRangeByScore indicates an expected call of ZRemRangeByScore.

func (*MockIRedisMockRecorder) ZRevRange added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRevRange(key, start, stop, withScores interface{}) *gomock.Call

ZRevRange indicates an expected call of ZRevRange.

func (*MockIRedisMockRecorder) ZRevRangeByScore added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRevRangeByScore(key, min, max, opt interface{}) *gomock.Call

ZRevRangeByScore indicates an expected call of ZRevRangeByScore.

func (*MockIRedisMockRecorder) ZRevRank added in v1.0.0

func (mr *MockIRedisMockRecorder) ZRevRank(key, member interface{}) *gomock.Call

ZRevRank indicates an expected call of ZRevRank.

func (*MockIRedisMockRecorder) ZScan added in v1.0.0

func (mr *MockIRedisMockRecorder) ZScan(key, cursor, match, count interface{}) *gomock.Call

ZScan indicates an expected call of ZScan.

func (*MockIRedisMockRecorder) ZScore added in v1.0.0

func (mr *MockIRedisMockRecorder) ZScore(key, member interface{}) *gomock.Call

ZScore indicates an expected call of ZScore.

type MockIRpc added in v1.2.0

type MockIRpc struct {
	// contains filtered or unexported fields
}

MockIRpc is a mock of IRpc interface.

func NewMockIRpc added in v1.2.0

func NewMockIRpc(ctrl *gomock.Controller) *MockIRpc

NewMockIRpc creates a new mock instance.

func (*MockIRpc) Call added in v1.2.0

func (m *MockIRpc) Call(arg0 string, arg1 interface{}) error

Call mocks base method.

func (*MockIRpc) CallWithoutResponseError added in v1.2.0

func (m *MockIRpc) CallWithoutResponseError(arg0 string, arg1 interface{}) error

CallWithoutResponseError mocks base method.

func (*MockIRpc) EXPECT added in v1.2.0

func (m *MockIRpc) EXPECT() *MockIRpcMockRecorder

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

func (*MockIRpc) SetBody added in v1.2.0

func (m *MockIRpc) SetBody(arg0 any) IRpc

SetBody mocks base method.

func (*MockIRpc) SetHeader added in v1.2.0

func (m *MockIRpc) SetHeader(arg0 map[string]string) IRpc

SetHeader mocks base method.

type MockIRpcFactory added in v1.2.0

type MockIRpcFactory struct {
	// contains filtered or unexported fields
}

MockIRpcFactory is a mock of IRpcFactory interface.

func NewMockIRpcFactory added in v1.2.0

func NewMockIRpcFactory(ctrl *gomock.Controller) *MockIRpcFactory

NewMockIRpcFactory creates a new mock instance.

func (*MockIRpcFactory) Build added in v1.2.0

func (m *MockIRpcFactory) Build() IRpc

Build mocks base method.

func (*MockIRpcFactory) EXPECT added in v1.2.0

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

type MockIRpcFactoryMockRecorder added in v1.2.0

type MockIRpcFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIRpcFactoryMockRecorder is the mock recorder for MockIRpcFactory.

func (*MockIRpcFactoryMockRecorder) Build added in v1.2.0

Build indicates an expected call of Build.

type MockIRpcMockRecorder added in v1.2.0

type MockIRpcMockRecorder struct {
	// contains filtered or unexported fields
}

MockIRpcMockRecorder is the mock recorder for MockIRpc.

func (*MockIRpcMockRecorder) Call added in v1.2.0

func (mr *MockIRpcMockRecorder) Call(arg0, arg1 interface{}) *gomock.Call

Call indicates an expected call of Call.

func (*MockIRpcMockRecorder) CallWithoutResponseError added in v1.2.0

func (mr *MockIRpcMockRecorder) CallWithoutResponseError(arg0, arg1 interface{}) *gomock.Call

CallWithoutResponseError indicates an expected call of CallWithoutResponseError.

func (*MockIRpcMockRecorder) SetBody added in v1.2.0

func (mr *MockIRpcMockRecorder) SetBody(arg0 interface{}) *gomock.Call

SetBody indicates an expected call of SetBody.

func (*MockIRpcMockRecorder) SetHeader added in v1.2.0

func (mr *MockIRpcMockRecorder) SetHeader(arg0 interface{}) *gomock.Call

SetHeader indicates an expected call of SetHeader.

type MockIStringGenerator added in v1.0.0

type MockIStringGenerator struct {
	// contains filtered or unexported fields
}

MockIStringGenerator is a mock of IStringGenerator interface.

func NewMockIStringGenerator added in v1.0.0

func NewMockIStringGenerator(ctrl *gomock.Controller) *MockIStringGenerator

NewMockIStringGenerator creates a new mock instance.

func (*MockIStringGenerator) EXPECT added in v1.0.0

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

func (*MockIStringGenerator) Generate added in v1.0.0

func (m *MockIStringGenerator) Generate() string

Generate mocks base method.

type MockIStringGeneratorMockRecorder added in v1.0.0

type MockIStringGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockIStringGeneratorMockRecorder is the mock recorder for MockIStringGenerator.

func (*MockIStringGeneratorMockRecorder) Generate added in v1.0.0

Generate indicates an expected call of Generate.

type MockITraceable added in v1.0.0

type MockITraceable struct {
	// contains filtered or unexported fields
}

MockITraceable is a mock of ITraceable interface.

func NewMockITraceable added in v1.0.0

func NewMockITraceable(ctrl *gomock.Controller) *MockITraceable

NewMockITraceable creates a new mock instance.

func (*MockITraceable) EXPECT added in v1.0.0

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

func (*MockITraceable) WithContext added in v1.0.0

func (m *MockITraceable) WithContext(ctx context.Context) reflect.Value

WithContext mocks base method.

type MockITraceableMockRecorder added in v1.0.0

type MockITraceableMockRecorder struct {
	// contains filtered or unexported fields
}

MockITraceableMockRecorder is the mock recorder for MockITraceable.

func (*MockITraceableMockRecorder) WithContext added in v1.0.0

func (mr *MockITraceableMockRecorder) WithContext(ctx interface{}) *gomock.Call

WithContext indicates an expected call of WithContext.

type MockIUnitOfWork

type MockIUnitOfWork struct {
	// contains filtered or unexported fields
}

MockIUnitOfWork is a mock of IUnitOfWork interface.

func NewMockIUnitOfWork

func NewMockIUnitOfWork(ctrl *gomock.Controller) *MockIUnitOfWork

NewMockIUnitOfWork creates a new mock instance.

func (*MockIUnitOfWork) Commit

func (m *MockIUnitOfWork) Commit() error

Commit mocks base method.

func (*MockIUnitOfWork) EXPECT

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

func (*MockIUnitOfWork) RegisterAfter added in v1.2.0

func (m *MockIUnitOfWork) RegisterAfter(arg0 func() error, arg1 string)

RegisterAfter mocks base method.

type MockIUnitOfWorkMockRecorder

type MockIUnitOfWorkMockRecorder struct {
	// contains filtered or unexported fields
}

MockIUnitOfWorkMockRecorder is the mock recorder for MockIUnitOfWork.

func (*MockIUnitOfWorkMockRecorder) Commit

func (mr *MockIUnitOfWorkMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockIUnitOfWorkMockRecorder) RegisterAfter added in v1.2.0

func (mr *MockIUnitOfWorkMockRecorder) RegisterAfter(arg0, arg1 interface{}) *gomock.Call

RegisterAfter indicates an expected call of RegisterAfter.

type MockIUnitOfWorkRepository

type MockIUnitOfWorkRepository struct {
	// contains filtered or unexported fields
}

MockIUnitOfWorkRepository is a mock of IUnitOfWorkRepository interface.

func NewMockIUnitOfWorkRepository

func NewMockIUnitOfWorkRepository(ctrl *gomock.Controller) *MockIUnitOfWorkRepository

NewMockIUnitOfWorkRepository creates a new mock instance.

func (*MockIUnitOfWorkRepository) Commit

func (m *MockIUnitOfWorkRepository) Commit() error

Commit mocks base method.

func (*MockIUnitOfWorkRepository) EXPECT

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

func (*MockIUnitOfWorkRepository) RegisterAdd

func (m *MockIUnitOfWorkRepository) RegisterAdd(entry contract.IDbModel)

RegisterAdd mocks base method.

func (*MockIUnitOfWorkRepository) RegisterAfter added in v1.2.0

func (m *MockIUnitOfWorkRepository) RegisterAfter(arg0 func() error, arg1 string)

RegisterAfter mocks base method.

func (*MockIUnitOfWorkRepository) RegisterRemove

func (m *MockIUnitOfWorkRepository) RegisterRemove(entry contract.IDbModel)

RegisterRemove mocks base method.

func (*MockIUnitOfWorkRepository) RegisterSave

func (m *MockIUnitOfWorkRepository) RegisterSave(entry contract.IDbModel)

RegisterSave mocks base method.

type MockIUnitOfWorkRepositoryMockRecorder

type MockIUnitOfWorkRepositoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIUnitOfWorkRepositoryMockRecorder is the mock recorder for MockIUnitOfWorkRepository.

func (*MockIUnitOfWorkRepositoryMockRecorder) Commit

Commit indicates an expected call of Commit.

func (*MockIUnitOfWorkRepositoryMockRecorder) RegisterAdd

func (mr *MockIUnitOfWorkRepositoryMockRecorder) RegisterAdd(entry interface{}) *gomock.Call

RegisterAdd indicates an expected call of RegisterAdd.

func (*MockIUnitOfWorkRepositoryMockRecorder) RegisterAfter added in v1.2.0

func (mr *MockIUnitOfWorkRepositoryMockRecorder) RegisterAfter(arg0, arg1 interface{}) *gomock.Call

RegisterAfter indicates an expected call of RegisterAfter.

func (*MockIUnitOfWorkRepositoryMockRecorder) RegisterRemove

func (mr *MockIUnitOfWorkRepositoryMockRecorder) RegisterRemove(entry interface{}) *gomock.Call

RegisterRemove indicates an expected call of RegisterRemove.

func (*MockIUnitOfWorkRepositoryMockRecorder) RegisterSave

func (mr *MockIUnitOfWorkRepositoryMockRecorder) RegisterSave(entry interface{}) *gomock.Call

RegisterSave indicates an expected call of RegisterSave.

type MockIUserRandSeedService added in v1.4.0

type MockIUserRandSeedService struct {
	// contains filtered or unexported fields
}

MockIUserRandSeedService is a mock of IUserRandSeedService interface.

func NewMockIUserRandSeedService added in v1.4.0

func NewMockIUserRandSeedService(ctrl *gomock.Controller) *MockIUserRandSeedService

NewMockIUserRandSeedService creates a new mock instance.

func (*MockIUserRandSeedService) EXPECT added in v1.4.0

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

func (*MockIUserRandSeedService) Get added in v1.4.0

func (m *MockIUserRandSeedService) Get(arg0 IUnitOfWork, arg1, arg2 int) (int, error)

Get mocks base method.

func (*MockIUserRandSeedService) Use added in v1.4.0

func (m *MockIUserRandSeedService) Use(arg0 IUnitOfWork, arg1 int) (int, error)

Use mocks base method.

type MockIUserRandSeedServiceMockRecorder added in v1.4.0

type MockIUserRandSeedServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIUserRandSeedServiceMockRecorder is the mock recorder for MockIUserRandSeedService.

func (*MockIUserRandSeedServiceMockRecorder) Get added in v1.4.0

func (mr *MockIUserRandSeedServiceMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockIUserRandSeedServiceMockRecorder) Use added in v1.4.0

func (mr *MockIUserRandSeedServiceMockRecorder) Use(arg0, arg1 interface{}) *gomock.Call

Use indicates an expected call of Use.

type MockIUserRewardService added in v1.4.0

type MockIUserRewardService struct {
	// contains filtered or unexported fields
}

MockIUserRewardService is a mock of IUserRewardService interface.

func NewMockIUserRewardService added in v1.4.0

func NewMockIUserRewardService(ctrl *gomock.Controller) *MockIUserRewardService

NewMockIUserRewardService creates a new mock instance.

func (*MockIUserRewardService) EXPECT added in v1.4.0

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

func (*MockIUserRewardService) FindResults added in v1.4.0

func (m *MockIUserRewardService) FindResults(arg0 IUnitOfWork, arg1 [][]message.Reward, arg2, arg3 string) ([]message.ChangeValue, error)

FindResults mocks base method.

func (*MockIUserRewardService) Preview added in v1.4.0

func (m *MockIUserRewardService) Preview(arg0 IUnitOfWork, arg1 [][]message.Reward, arg2 string) ([]message.ChangeValue, error)

Preview mocks base method.

type MockIUserRewardServiceMockRecorder added in v1.4.0

type MockIUserRewardServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIUserRewardServiceMockRecorder is the mock recorder for MockIUserRewardService.

func (*MockIUserRewardServiceMockRecorder) FindResults added in v1.4.0

func (mr *MockIUserRewardServiceMockRecorder) FindResults(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

FindResults indicates an expected call of FindResults.

func (*MockIUserRewardServiceMockRecorder) Preview added in v1.4.0

func (mr *MockIUserRewardServiceMockRecorder) Preview(arg0, arg1, arg2 interface{}) *gomock.Call

Preview indicates an expected call of Preview.

type MockIUserService added in v1.4.0

type MockIUserService struct {
	// contains filtered or unexported fields
}

MockIUserService is a mock of IUserService interface.

func NewMockIUserService added in v1.4.0

func NewMockIUserService(ctrl *gomock.Controller) *MockIUserService

NewMockIUserService creates a new mock instance.

func (*MockIUserService) EXPECT added in v1.4.0

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

func (*MockIUserService) GetRandSeedService added in v1.4.0

func (m *MockIUserService) GetRandSeedService(arg0 string) IUserRandSeedService

GetRandSeedService mocks base method.

func (*MockIUserService) GetRewardService added in v1.4.0

func (m *MockIUserService) GetRewardService() IUserRewardService

GetRewardService mocks base method.

func (*MockIUserService) GetValueService added in v1.4.0

func (m *MockIUserService) GetValueService() IValueService

GetValueService mocks base method.

type MockIUserServiceMockRecorder added in v1.4.0

type MockIUserServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIUserServiceMockRecorder is the mock recorder for MockIUserService.

func (*MockIUserServiceMockRecorder) GetRandSeedService added in v1.4.0

func (mr *MockIUserServiceMockRecorder) GetRandSeedService(arg0 interface{}) *gomock.Call

GetRandSeedService indicates an expected call of GetRandSeedService.

func (*MockIUserServiceMockRecorder) GetRewardService added in v1.4.0

func (mr *MockIUserServiceMockRecorder) GetRewardService() *gomock.Call

GetRewardService indicates an expected call of GetRewardService.

func (*MockIUserServiceMockRecorder) GetValueService added in v1.4.0

func (mr *MockIUserServiceMockRecorder) GetValueService() *gomock.Call

GetValueService indicates an expected call of GetValueService.

type MockIValueInterceptor added in v1.2.0

type MockIValueInterceptor struct {
	// contains filtered or unexported fields
}

MockIValueInterceptor is a mock of IValueInterceptor interface.

func NewMockIValueInterceptor added in v1.2.0

func NewMockIValueInterceptor(ctrl *gomock.Controller) *MockIValueInterceptor

NewMockIValueInterceptor creates a new mock instance.

func (*MockIValueInterceptor) After added in v1.2.0

After mocks base method.

func (*MockIValueInterceptor) Before added in v1.2.0

Before mocks base method.

func (*MockIValueInterceptor) EXPECT added in v1.2.0

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

type MockIValueInterceptorFactory added in v1.2.0

type MockIValueInterceptorFactory struct {
	// contains filtered or unexported fields
}

MockIValueInterceptorFactory is a mock of IValueInterceptorFactory interface.

func NewMockIValueInterceptorFactory added in v1.2.0

func NewMockIValueInterceptorFactory(ctrl *gomock.Controller) *MockIValueInterceptorFactory

NewMockIValueInterceptorFactory creates a new mock instance.

func (*MockIValueInterceptorFactory) Build added in v1.2.0

Build mocks base method.

func (*MockIValueInterceptorFactory) EXPECT added in v1.2.0

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

func (*MockIValueInterceptorFactory) Register added in v1.2.0

func (m *MockIValueInterceptorFactory) Register(arg0 int, arg1 IValueInterceptor)

Register mocks base method.

func (*MockIValueInterceptorFactory) RegisterPredicate added in v1.2.0

func (m *MockIValueInterceptorFactory) RegisterPredicate(arg0 func(contract.IEnumItem) bool, arg1 IValueInterceptor)

RegisterPredicate mocks base method.

type MockIValueInterceptorFactoryMockRecorder added in v1.2.0

type MockIValueInterceptorFactoryMockRecorder struct {
	// contains filtered or unexported fields
}

MockIValueInterceptorFactoryMockRecorder is the mock recorder for MockIValueInterceptorFactory.

func (*MockIValueInterceptorFactoryMockRecorder) Build added in v1.2.0

func (mr *MockIValueInterceptorFactoryMockRecorder) Build(arg0 interface{}) *gomock.Call

Build indicates an expected call of Build.

func (*MockIValueInterceptorFactoryMockRecorder) Register added in v1.2.0

func (mr *MockIValueInterceptorFactoryMockRecorder) Register(arg0, arg1 interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockIValueInterceptorFactoryMockRecorder) RegisterPredicate added in v1.2.0

func (mr *MockIValueInterceptorFactoryMockRecorder) RegisterPredicate(arg0, arg1 interface{}) *gomock.Call

RegisterPredicate indicates an expected call of RegisterPredicate.

type MockIValueInterceptorMockRecorder added in v1.2.0

type MockIValueInterceptorMockRecorder struct {
	// contains filtered or unexported fields
}

MockIValueInterceptorMockRecorder is the mock recorder for MockIValueInterceptor.

func (*MockIValueInterceptorMockRecorder) After added in v1.2.0

func (mr *MockIValueInterceptorMockRecorder) After(arg0, arg1, arg2 interface{}) *gomock.Call

After indicates an expected call of After.

func (*MockIValueInterceptorMockRecorder) Before added in v1.2.0

func (mr *MockIValueInterceptorMockRecorder) Before(arg0, arg1, arg2 interface{}) *gomock.Call

Before indicates an expected call of Before.

type MockIValueService added in v1.2.0

type MockIValueService struct {
	// contains filtered or unexported fields
}

MockIValueService is a mock of IValueService interface.

func NewMockIValueService added in v1.2.0

func NewMockIValueService(ctrl *gomock.Controller) *MockIValueService

NewMockIValueService creates a new mock instance.

func (*MockIValueService) CheckConditions added in v1.2.0

func (m *MockIValueService) CheckConditions(arg0 IUnitOfWork, arg1 [][]contract.IValueCondition) (bool, error)

CheckConditions mocks base method.

func (*MockIValueService) EXPECT added in v1.2.0

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

func (*MockIValueService) GetCount added in v1.2.0

func (m *MockIValueService) GetCount(arg0 IUnitOfWork, arg1 int) (int64, error)

GetCount mocks base method.

func (*MockIValueService) GetEntry added in v1.2.0

func (m *MockIValueService) GetEntry(arg0 any) error

GetEntry mocks base method.

func (*MockIValueService) Update added in v1.2.0

func (m *MockIValueService) Update(arg0 IUnitOfWork, arg1 string, arg2 []message.ChangeValue) error

Update mocks base method.

type MockIValueServiceMockRecorder added in v1.2.0

type MockIValueServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockIValueServiceMockRecorder is the mock recorder for MockIValueService.

func (*MockIValueServiceMockRecorder) CheckConditions added in v1.2.0

func (mr *MockIValueServiceMockRecorder) CheckConditions(arg0, arg1 interface{}) *gomock.Call

CheckConditions indicates an expected call of CheckConditions.

func (*MockIValueServiceMockRecorder) GetCount added in v1.2.0

func (mr *MockIValueServiceMockRecorder) GetCount(arg0, arg1 interface{}) *gomock.Call

GetCount indicates an expected call of GetCount.

func (*MockIValueServiceMockRecorder) GetEntry added in v1.2.0

func (mr *MockIValueServiceMockRecorder) GetEntry(arg0 interface{}) *gomock.Call

GetEntry indicates an expected call of GetEntry.

func (*MockIValueServiceMockRecorder) Update added in v1.2.0

func (mr *MockIValueServiceMockRecorder) Update(arg0, arg1, arg2 interface{}) *gomock.Call

Update indicates an expected call of Update.

type ValueServiceBase added in v1.3.0

type ValueServiceBase[T contract.IValue] struct {
	FindEntriesFunc func() ([]T, error)
	UpdateFunc      func(IUnitOfWork, string, []message.ChangeValue, *[]T) error
	// contains filtered or unexported fields
}

func (*ValueServiceBase[T]) CheckConditions added in v1.3.0

func (m *ValueServiceBase[T]) CheckConditions(_ IUnitOfWork, _ [][]contract.IValueCondition) (bool, error)

func (*ValueServiceBase[T]) GetCount added in v1.3.0

func (m *ValueServiceBase[T]) GetCount(uow IUnitOfWork, valueType int) (res int64, err error)

func (*ValueServiceBase[T]) GetEntry added in v1.3.0

func (m *ValueServiceBase[T]) GetEntry(v any) (err error)

func (*ValueServiceBase[T]) Update added in v1.3.0

func (m *ValueServiceBase[T]) Update(uow IUnitOfWork, source string, changeValues []message.ChangeValue) (err error)

Jump to

Keyboard shortcuts

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