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.
Index ¶
- type IApi
- type IApiFactory
- type IApiPort
- type IApiSession
- type IConfigLoader
- type IDbFactory
- type IDbQuery
- type IDbRepository
- type IError
- type ILog
- type ILogFactory
- type INowTime
- type IOsPath
- type IRedis
- type IStringGenerator
- type ITraceable
- type IUnitOfWork
- type IUnitOfWorkRepository
- type MockIApi
- type MockIApiFactory
- type MockIApiFactoryMockRecorder
- type MockIApiMockRecorder
- type MockIApiPort
- type MockIApiPortMockRecorder
- type MockIConfigLoader
- type MockIConfigLoaderMockRecorder
- type MockIDbFactory
- type MockIDbFactoryMockRecorder
- type MockIDbQuery
- func (m *MockIDbQuery) Count() (int64, error)
- func (m *MockIDbQuery) EXPECT() *MockIDbQueryMockRecorder
- func (m *MockIDbQuery) Order(fields ...string) IDbQuery
- func (m *MockIDbQuery) OrderByDesc(fields ...string) IDbQuery
- func (m *MockIDbQuery) Skip(v int) IDbQuery
- func (m *MockIDbQuery) Take(v int) IDbQuery
- func (m *MockIDbQuery) ToArray(dst interface{}) error
- func (m *MockIDbQuery) Where(args ...interface{}) IDbQuery
- type MockIDbQueryMockRecorder
- func (mr *MockIDbQueryMockRecorder) Count() *gomock.Call
- func (mr *MockIDbQueryMockRecorder) Order(fields ...interface{}) *gomock.Call
- func (mr *MockIDbQueryMockRecorder) OrderByDesc(fields ...interface{}) *gomock.Call
- func (mr *MockIDbQueryMockRecorder) Skip(v interface{}) *gomock.Call
- func (mr *MockIDbQueryMockRecorder) Take(v interface{}) *gomock.Call
- func (mr *MockIDbQueryMockRecorder) ToArray(dst interface{}) *gomock.Call
- func (mr *MockIDbQueryMockRecorder) Where(args ...interface{}) *gomock.Call
- type MockIDbRepository
- func (m *MockIDbRepository) Add(entry contract.IDbModel) error
- func (m *MockIDbRepository) EXPECT() *MockIDbRepositoryMockRecorder
- func (m *MockIDbRepository) Query() IDbQuery
- func (m *MockIDbRepository) Remove(entry contract.IDbModel) error
- func (m *MockIDbRepository) Save(entry contract.IDbModel) error
- type MockIDbRepositoryMockRecorder
- type MockILog
- type MockILogFactory
- type MockILogFactoryMockRecorder
- type MockILogMockRecorder
- func (mr *MockILogMockRecorder) AddLabel(k, f interface{}, v ...interface{}) *gomock.Call
- func (mr *MockILogMockRecorder) Debug() *gomock.Call
- func (mr *MockILogMockRecorder) Error(err interface{}) *gomock.Call
- func (mr *MockILogMockRecorder) Info() *gomock.Call
- func (mr *MockILogMockRecorder) Warning() *gomock.Call
- type MockINowTime
- type MockINowTimeMockRecorder
- type MockIOsPath
- type MockIOsPathMockRecorder
- type MockIRedis
- func (m *MockIRedis) BLPop(timeout time.Duration, keys ...string) ([]string, error)
- func (m *MockIRedis) BRPop(timeout time.Duration, keys ...string) ([]string, error)
- func (m *MockIRedis) BitCount(key string, start, end int64) (int64, error)
- func (m *MockIRedis) BitOp(op, destKey string, keys ...string) (bool, error)
- func (m *MockIRedis) BitPos(key string, bit bool, start, end int64) (int64, error)
- func (m *MockIRedis) Close() error
- func (m *MockIRedis) Decr(key string) (int64, error)
- func (m *MockIRedis) DecrBy(key string, decrement int64) (int64, error)
- func (m *MockIRedis) Del(arg0 ...string) (int64, error)
- func (m *MockIRedis) EXPECT() *MockIRedisMockRecorder
- func (m *MockIRedis) Exists(arg0 string) (bool, error)
- func (m *MockIRedis) ExpireAt(key string, time time.Time) (bool, error)
- func (m *MockIRedis) Expires(key string, seconds time.Duration) (bool, error)
- func (m *MockIRedis) GeoAdd(key string, locations ...message.RedisGeoLocation) (int64, error)
- func (m *MockIRedis) GeoDist(key, member1, member2, unit string) (float64, error)
- func (m *MockIRedis) GeoPos(key string, members ...string) ([]*message.RedisGeoPosition, error)
- func (m *MockIRedis) GeoRadius(key string, longitude, latitude float64, query message.RedisGeoRadiusQuery) ([]message.RedisGeoLocation, error)
- func (m *MockIRedis) GeoRadiusByMember(key, member string, query message.RedisGeoRadiusQuery) ([]message.RedisGeoLocation, error)
- func (m *MockIRedis) Get(key string) (string, error)
- func (m *MockIRedis) GetBit(key string, offset int64) (bool, error)
- func (m *MockIRedis) HDel(key string, fields ...string) (int64, error)
- func (m *MockIRedis) HExists(key, field string) (bool, error)
- func (m *MockIRedis) HGet(key, field string) (string, error)
- func (m *MockIRedis) HGetAll(key string) (map[string]string, error)
- func (m *MockIRedis) HIncrBy(key, field string, increment int64) (int64, error)
- func (m *MockIRedis) HIncrByFloat(key, field string, increment float64) (float64, error)
- func (m *MockIRedis) HKeys(key string) ([]string, error)
- func (m *MockIRedis) HLen(key string) (int64, error)
- func (m *MockIRedis) HMGet(key string, fields ...string) ([]string, error)
- func (m *MockIRedis) HMSet(key string, fieldOrValues ...string) error
- func (m *MockIRedis) HScan(key string, cursor uint64, match string, count int64) (map[string]string, uint64, error)
- func (m *MockIRedis) HSet(key, field, value string) (bool, error)
- func (m *MockIRedis) HSetNX(key, field, value string) (bool, error)
- func (m *MockIRedis) HStrLen(key, field string) (int64, error)
- func (m *MockIRedis) HVals(key string) ([]string, error)
- func (m *MockIRedis) Incr(key string) (int64, error)
- func (m *MockIRedis) IncrBy(key string, increment int64) (int64, error)
- func (m *MockIRedis) LIndex(key string, index int64) (string, error)
- func (m *MockIRedis) LLen(key string) (int64, error)
- func (m *MockIRedis) LPop(key string) (string, error)
- func (m *MockIRedis) LPush(key string, values ...string) (int64, error)
- func (m *MockIRedis) LPushX(key, value string) (int64, error)
- func (m *MockIRedis) LRange(key string, start, stop int64) ([]string, error)
- func (m *MockIRedis) LRem(key string, count int64, value string) (int64, error)
- func (m *MockIRedis) LSet(key string, index int64, value string) (bool, error)
- func (m *MockIRedis) LTrim(key string, start, stop int64) (bool, error)
- func (m *MockIRedis) RPop(key string) (string, error)
- func (m *MockIRedis) RPush(key string, values ...string) (int64, error)
- func (m *MockIRedis) RPushX(key, value string) (int64, error)
- func (m *MockIRedis) SAdd(key string, members ...string) (int64, error)
- func (m *MockIRedis) SCard(key string) (int64, error)
- func (m *MockIRedis) SIsMember(key, member string) (bool, error)
- func (m *MockIRedis) SMembers(key string) ([]string, error)
- func (m *MockIRedis) SPop(key string) (string, error)
- func (m *MockIRedis) Set(arg0, arg1 string, arg2 ...interface{}) (bool, error)
- func (m *MockIRedis) SetBit(key string, offset int64, value bool) (bool, error)
- func (m *MockIRedis) TTL(key string) (time.Duration, error)
- func (m *MockIRedis) Time() (time.Time, error)
- func (m *MockIRedis) ZAdd(key string, members ...message.RedisZMember) (int64, error)
- func (m *MockIRedis) ZCard(key string) (int64, error)
- func (m *MockIRedis) ZCount(key string, min, max float64) (int64, error)
- func (m *MockIRedis) ZIncrBy(key string, increment float64, member string) (float64, error)
- func (m *MockIRedis) ZRange(key string, start, stop int64, withscores bool) ([]message.RedisZMember, error)
- func (m *MockIRedis) ZRangeByScore(key, min, max string, opt message.RedisZRangeByScore) ([]message.RedisZMember, error)
- func (m *MockIRedis) ZRank(key, member string) (int64, error)
- func (m *MockIRedis) ZRem(key string, members ...string) (int64, error)
- func (m *MockIRedis) ZRemRangeByRank(key string, start, stop int64) (int64, error)
- func (m *MockIRedis) ZRemRangeByScore(key string, min, max float64) (int64, error)
- func (m *MockIRedis) ZRevRange(key string, start, stop int64, withScores bool) ([]message.RedisZMember, error)
- func (m *MockIRedis) ZRevRangeByScore(key, min, max string, opt message.RedisZRangeByScore) ([]message.RedisZMember, error)
- func (m *MockIRedis) ZRevRank(key, member string) (int64, error)
- func (m *MockIRedis) ZScan(key string, cursor uint64, match string, count int64) ([]message.RedisZMember, uint64, error)
- func (m *MockIRedis) ZScore(key, member string) (float64, error)
- type MockIRedisMockRecorder
- func (mr *MockIRedisMockRecorder) BLPop(timeout interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) BRPop(timeout interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) BitCount(key, start, end interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) BitOp(op, destKey interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) BitPos(key, bit, start, end interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Close() *gomock.Call
- func (mr *MockIRedisMockRecorder) Decr(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) DecrBy(key, decrement interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Del(arg0 ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ExpireAt(key, time interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Expires(key, seconds interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) GeoAdd(key interface{}, locations ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) GeoDist(key, member1, member2, unit interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) GeoPos(key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) GeoRadius(key, longitude, latitude, query interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) GeoRadiusByMember(key, member, query interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) GetBit(key, offset interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HDel(key interface{}, fields ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HExists(key, field interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HGet(key, field interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HGetAll(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HIncrBy(key, field, increment interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HIncrByFloat(key, field, increment interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HKeys(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HLen(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HMGet(key interface{}, fields ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HMSet(key interface{}, fieldOrValues ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HScan(key, cursor, match, count interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HSet(key, field, value interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HSetNX(key, field, value interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HStrLen(key, field interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) HVals(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Incr(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) IncrBy(key, increment interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LIndex(key, index interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LLen(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LPop(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LPush(key interface{}, values ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LPushX(key, value interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LRange(key, start, stop interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LRem(key, count, value interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LSet(key, index, value interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) LTrim(key, start, stop interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) RPop(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) RPush(key interface{}, values ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) RPushX(key, value interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SAdd(key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SCard(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SIsMember(key, member interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SMembers(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SPop(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Set(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) SetBit(key, offset, value interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) TTL(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) Time() *gomock.Call
- func (mr *MockIRedisMockRecorder) ZAdd(key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZCard(key interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZCount(key, min, max interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZIncrBy(key, increment, member interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRange(key, start, stop, withscores interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRangeByScore(key, min, max, opt interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRank(key, member interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRem(key interface{}, members ...interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRemRangeByRank(key, start, stop interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRemRangeByScore(key, min, max interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRevRange(key, start, stop, withScores interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRevRangeByScore(key, min, max, opt interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZRevRank(key, member interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZScan(key, cursor, match, count interface{}) *gomock.Call
- func (mr *MockIRedisMockRecorder) ZScore(key, member interface{}) *gomock.Call
- type MockIStringGenerator
- type MockIStringGeneratorMockRecorder
- type MockITraceable
- type MockITraceableMockRecorder
- type MockIUnitOfWork
- type MockIUnitOfWorkMockRecorder
- type MockIUnitOfWorkRepository
- func (m *MockIUnitOfWorkRepository) Commit() error
- func (m *MockIUnitOfWorkRepository) EXPECT() *MockIUnitOfWorkRepositoryMockRecorder
- func (m *MockIUnitOfWorkRepository) RegisterAdd(entry contract.IDbModel)
- func (m *MockIUnitOfWorkRepository) RegisterRemove(entry contract.IDbModel)
- func (m *MockIUnitOfWorkRepository) RegisterSave(entry contract.IDbModel)
- type MockIUnitOfWorkRepositoryMockRecorder
- func (mr *MockIUnitOfWorkRepositoryMockRecorder) Commit() *gomock.Call
- func (mr *MockIUnitOfWorkRepositoryMockRecorder) RegisterAdd(entry interface{}) *gomock.Call
- func (mr *MockIUnitOfWorkRepositoryMockRecorder) RegisterRemove(entry interface{}) *gomock.Call
- func (mr *MockIUnitOfWorkRepositoryMockRecorder) RegisterSave(entry interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IApiFactory ¶
type IApiFactory interface {
// 创建api
Build(endpoint, api string) (instance IApi, err error)
// 注册
Register(endpoint, name string, api interface{})
}
IApiFactory is api工厂
type IConfigLoader ¶ added in v1.0.0
type IConfigLoader interface {
Load(v interface{}) error
}
配置加载器
type IDbFactory ¶
type IDbFactory interface {
// 仓储
Db(entry contract.IDbModel, extra ...interface{}) 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 interface{}) error
// 条件
Where(args ...interface{}) IDbQuery
}
数据查询
type IDbRepository ¶
type IDbRepository interface {
Add(entry contract.IDbModel) error
Query() IDbQuery
Remove(entry contract.IDbModel) error
Save(entry contract.IDbModel) error
}
数据仓库
type ILog ¶
type ILog interface {
AddLabel(k, f string, v ...interface{}) ILog
Debug()
Error(err error)
Info()
Warning()
}
日志
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 IStringGenerator ¶ added in v1.0.0
type IStringGenerator interface {
Generate() string
}
字符串生成器
type ITraceable ¶ added in v1.0.0
跟踪接口
type IUnitOfWorkRepository ¶
type IUnitOfWorkRepository interface {
IUnitOfWork
RegisterAdd(entry contract.IDbModel)
RegisterSave(entry contract.IDbModel)
RegisterRemove(entry contract.IDbModel)
}
工作单元仓储
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) 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 ¶
func (m *MockIApiFactory) EXPECT() *MockIApiFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIApiFactory) Register ¶
func (m *MockIApiFactory) Register(endpoint, name string, api interface{})
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
func (m *MockIApiPort) EXPECT() *MockIApiPortMockRecorder
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 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
func (m *MockIConfigLoader) EXPECT() *MockIConfigLoaderMockRecorder
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 interface{}) 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 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 ...interface{}) IDbRepository
Db mocks base method
func (*MockIDbFactory) EXPECT ¶
func (m *MockIDbFactory) EXPECT() *MockIDbFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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 ¶
func (mr *MockIDbFactoryMockRecorder) Uow() *gomock.Call
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) EXPECT ¶
func (m *MockIDbQuery) EXPECT() *MockIDbQueryMockRecorder
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) 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 ¶
func (m *MockIDbRepository) EXPECT() *MockIDbRepositoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIDbRepository) Query ¶
func (m *MockIDbRepository) Query() IDbQuery
Query 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 ¶
func (mr *MockIDbRepositoryMockRecorder) Query() *gomock.Call
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 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) EXPECT ¶
func (m *MockILog) EXPECT() *MockILogMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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) EXPECT ¶
func (m *MockILogFactory) EXPECT() *MockILogFactoryMockRecorder
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 ¶
func (mr *MockILogFactoryMockRecorder) Build() *gomock.Call
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 ¶
func (m *MockINowTime) EXPECT() *MockINowTimeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockINowTimeMockRecorder ¶
type MockINowTimeMockRecorder struct {
// contains filtered or unexported fields
}
MockINowTimeMockRecorder is the mock recorder for MockINowTime
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) GetRoot ¶ added in v1.0.0
func (m *MockIOsPath) GetRoot() string
GetRoot 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) GetRoot ¶ added in v1.0.0
func (mr *MockIOsPathMockRecorder) GetRoot() *gomock.Call
GetRoot indicates an expected call of GetRoot
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) 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) 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) 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) 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) 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) 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) 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
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 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
func (m *MockIStringGenerator) EXPECT() *MockIStringGeneratorMockRecorder
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
func (mr *MockIStringGeneratorMockRecorder) Generate() *gomock.Call
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
func (m *MockITraceable) EXPECT() *MockITraceableMockRecorder
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) EXPECT ¶
func (m *MockIUnitOfWork) EXPECT() *MockIUnitOfWorkMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
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
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 ¶
func (m *MockIUnitOfWorkRepository) EXPECT() *MockIUnitOfWorkRepositoryMockRecorder
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) 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 ¶
func (mr *MockIUnitOfWorkRepositoryMockRecorder) Commit() *gomock.Call
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) 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
Source Files
¶
- i-api-factory.go
- i-api-factory_mock.go
- i-api-port.go
- i-api-port_mock.go
- i-api-session.go
- i-api.go
- i-api_mock.go
- i-config-loader.go
- i-config-loader_mock.go
- i-db-factory.go
- i-db-factory_mock.go
- i-db-query.go
- i-db-query_mock.go
- i-db-repository.go
- i-db-repository_mock.go
- i-error.go
- i-log-factory.go
- i-log-factory_mock.go
- i-log.go
- i-log_mock.go
- i-now-time.go
- i-now-time_mock.go
- i-os-path.go
- i-os-path_mock.go
- i-redis.go
- i-redis_mock.go
- i-string-generator.go
- i-string-generator_mock.go
- i-traceable.go
- i-traceable_mock.go
- i-unit-of-work-repository.go
- i-unit-of-work-repository_mock.go
- i-unit-of-work.go
- i-unit-of-work_mock.go