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.
Index ¶
- type IApi
- type IApiFactory
- type IContextWrapper
- type IDbFactory
- type IDbModel
- type IDbQuery
- type IDbRepository
- type IError
- type IIODirectory
- type IIOFactory
- type IIOFile
- type IIONode
- type IIOPath
- type ILog
- type ILogFactory
- type IModelCreatedOnSetter
- type IModelDeletedOnSetter
- type IModelModifiedOnSetter
- type INowTime
- type IRedis
- type IUnitOfWork
- type IUnitOfWorkRepository
- type MockIApi
- type MockIApiFactory
- type MockIApiFactoryMockRecorder
- type MockIApiMockRecorder
- type MockIContextWrapper
- type MockIContextWrapperMockRecorder
- type MockIDbFactory
- type MockIDbFactoryMockRecorder
- type MockIDbModel
- type MockIDbModelMockRecorder
- 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
- type MockIDbRepositoryMockRecorder
- type MockIError
- type MockIErrorMockRecorder
- type MockIIODirectory
- func (m *MockIIODirectory) EXPECT() *MockIIODirectoryMockRecorder
- func (m *MockIIODirectory) FindDirectories() []IIODirectory
- func (m *MockIIODirectory) FindFiles() []IIOFile
- func (m *MockIIODirectory) GetName() string
- func (m *MockIIODirectory) GetParent() IIODirectory
- func (m *MockIIODirectory) GetPath() string
- func (m *MockIIODirectory) IsExist() bool
- type MockIIODirectoryMockRecorder
- func (mr *MockIIODirectoryMockRecorder) FindDirectories() *gomock.Call
- func (mr *MockIIODirectoryMockRecorder) FindFiles() *gomock.Call
- func (mr *MockIIODirectoryMockRecorder) GetName() *gomock.Call
- func (mr *MockIIODirectoryMockRecorder) GetParent() *gomock.Call
- func (mr *MockIIODirectoryMockRecorder) GetPath() *gomock.Call
- func (mr *MockIIODirectoryMockRecorder) IsExist() *gomock.Call
- type MockIIOFactory
- type MockIIOFactoryMockRecorder
- type MockIIOFile
- func (m *MockIIOFile) EXPECT() *MockIIOFileMockRecorder
- func (m *MockIIOFile) GetExt() string
- func (m *MockIIOFile) GetName() string
- func (m *MockIIOFile) GetParent() IIODirectory
- func (m *MockIIOFile) GetPath() string
- func (m *MockIIOFile) IsExist() bool
- func (m *MockIIOFile) Read(data interface{}) error
- func (m *MockIIOFile) Write(data interface{}) error
- type MockIIOFileMockRecorder
- func (mr *MockIIOFileMockRecorder) GetExt() *gomock.Call
- func (mr *MockIIOFileMockRecorder) GetName() *gomock.Call
- func (mr *MockIIOFileMockRecorder) GetParent() *gomock.Call
- func (mr *MockIIOFileMockRecorder) GetPath() *gomock.Call
- func (mr *MockIIOFileMockRecorder) IsExist() *gomock.Call
- func (mr *MockIIOFileMockRecorder) Read(data interface{}) *gomock.Call
- func (mr *MockIIOFileMockRecorder) Write(data interface{}) *gomock.Call
- type MockIIONode
- type MockIIONodeMockRecorder
- type MockIIOPath
- type MockIIOPathMockRecorder
- type MockILog
- type MockILogFactory
- type MockILogFactoryMockRecorder
- type MockILogMockRecorder
- func (mr *MockILogMockRecorder) AddLabel(key, format interface{}, v ...interface{}) *gomock.Call
- func (mr *MockILogMockRecorder) Debug() *gomock.Call
- func (mr *MockILogMockRecorder) Error(err interface{}) *gomock.Call
- func (mr *MockILogMockRecorder) Fatal() *gomock.Call
- func (mr *MockILogMockRecorder) Info() *gomock.Call
- func (mr *MockILogMockRecorder) Warning() *gomock.Call
- type MockIModelCreatedOnSetter
- type MockIModelCreatedOnSetterMockRecorder
- type MockIModelDeletedOnSetter
- type MockIModelDeletedOnSetterMockRecorder
- type MockIModelModifiedOnSetter
- type MockIModelModifiedOnSetterMockRecorder
- type MockINowTime
- type MockINowTimeMockRecorder
- type MockIRedis
- type MockIRedisMockRecorder
- type MockIUnitOfWork
- type MockIUnitOfWorkMockRecorder
- type MockIUnitOfWorkRepository
- func (m *MockIUnitOfWorkRepository) Commit() error
- func (m *MockIUnitOfWorkRepository) EXPECT() *MockIUnitOfWorkRepositoryMockRecorder
- func (m *MockIUnitOfWorkRepository) RegisterAdd(entry IDbModel)
- func (m *MockIUnitOfWorkRepository) RegisterRemove(entry IDbModel)
- func (m *MockIUnitOfWorkRepository) RegisterSave(entry 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 IContextWrapper ¶
type IDbFactory ¶
type IDbFactory interface { Db(entry IDbModel, extra ...interface{}) IDbRepository Uow() IUnitOfWork }
IDbFactory is 数据工厂
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 }
IDbQuery is 数据查询接口
type IDbRepository ¶
type IDbRepository interface { Add(entry IDbModel) error Query() IDbQuery Remove(entry IDbModel) error Save(entry IDbModel) error }
IDbRepository is 数据仓库
type IIODirectory ¶
type IIODirectory interface { IIONode FindDirectories() []IIODirectory FindFiles() []IIOFile }
type IIOFactory ¶
type IIOFactory interface { BuildDirectory(pathArgs ...string) IIODirectory BuildFile(pathArgs ...string) IIOFile }
type IIONode ¶
type IIONode interface { GetName() string GetParent() IIODirectory GetPath() string IsExist() bool }
type ILogFactory ¶
type ILogFactory interface {
Build() ILog
}
type IModelCreatedOnSetter ¶
type IModelCreatedOnSetter interface {
SetCreatedOn(v int64)
}
IModelCreatedOnSetter is 创建时间设置接口
type IModelDeletedOnSetter ¶
type IModelDeletedOnSetter interface {
SetDeletedOn(v int64)
}
IModelDeletedOnSetter is 删除时间设置接口
type IModelModifiedOnSetter ¶
type IModelModifiedOnSetter interface {
SetModifiedOn(v int64)
}
IModelModifiedOnSetter is 修改时间设置接口
type IUnitOfWork ¶
type IUnitOfWork interface {
Commit() error
}
type IUnitOfWorkRepository ¶
type IUnitOfWorkRepository interface { IUnitOfWork RegisterAdd(entry IDbModel) RegisterSave(entry IDbModel) RegisterRemove(entry 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, apiName string) IApi
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, apiName string, apiInstance IApi)
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, apiName interface{}) *gomock.Call
Build indicates an expected call of Build.
func (*MockIApiFactoryMockRecorder) Register ¶
func (mr *MockIApiFactoryMockRecorder) Register(endpoint, apiName, apiInstance 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 MockIContextWrapper ¶
type MockIContextWrapper struct {
// contains filtered or unexported fields
}
MockIContextWrapper is a mock of IContextWrapper interface.
func NewMockIContextWrapper ¶
func NewMockIContextWrapper(ctrl *gomock.Controller) *MockIContextWrapper
NewMockIContextWrapper creates a new mock instance.
func (*MockIContextWrapper) EXPECT ¶
func (m *MockIContextWrapper) EXPECT() *MockIContextWrapperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIContextWrapper) WithContext ¶
func (m *MockIContextWrapper) WithContext(arg0 context.Context) interface{}
WithContext mocks base method.
type MockIContextWrapperMockRecorder ¶
type MockIContextWrapperMockRecorder struct {
// contains filtered or unexported fields
}
MockIContextWrapperMockRecorder is the mock recorder for MockIContextWrapper.
func (*MockIContextWrapperMockRecorder) WithContext ¶
func (mr *MockIContextWrapperMockRecorder) WithContext(arg0 interface{}) *gomock.Call
WithContext indicates an expected call of WithContext.
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 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 MockIDbModel ¶
type MockIDbModel struct {
// contains filtered or unexported fields
}
MockIDbModel is a mock of IDbModel interface.
func NewMockIDbModel ¶
func NewMockIDbModel(ctrl *gomock.Controller) *MockIDbModel
NewMockIDbModel creates a new mock instance.
func (*MockIDbModel) EXPECT ¶
func (m *MockIDbModel) EXPECT() *MockIDbModelMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIDbModelMockRecorder ¶
type MockIDbModelMockRecorder struct {
// contains filtered or unexported fields
}
MockIDbModelMockRecorder is the mock recorder for MockIDbModel.
func (*MockIDbModelMockRecorder) GetID ¶
func (mr *MockIDbModelMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
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 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.
func (*MockIDbRepository) Remove ¶
func (m *MockIDbRepository) Remove(entry IDbModel) error
Remove mocks base method.
func (*MockIDbRepository) Save ¶
func (m *MockIDbRepository) Save(entry 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 ¶
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 MockIError ¶
type MockIError struct {
// contains filtered or unexported fields
}
MockIError is a mock of IError interface.
func NewMockIError ¶
func NewMockIError(ctrl *gomock.Controller) *MockIError
NewMockIError creates a new mock instance.
func (*MockIError) EXPECT ¶
func (m *MockIError) EXPECT() *MockIErrorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIError) GetCode ¶
func (m *MockIError) GetCode() errorcode.Value
GetCode mocks base method.
type MockIErrorMockRecorder ¶
type MockIErrorMockRecorder struct {
// contains filtered or unexported fields
}
MockIErrorMockRecorder is the mock recorder for MockIError.
func (*MockIErrorMockRecorder) Error ¶
func (mr *MockIErrorMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockIErrorMockRecorder) GetCode ¶
func (mr *MockIErrorMockRecorder) GetCode() *gomock.Call
GetCode indicates an expected call of GetCode.
func (*MockIErrorMockRecorder) GetData ¶
func (mr *MockIErrorMockRecorder) GetData() *gomock.Call
GetData indicates an expected call of GetData.
type MockIIODirectory ¶
type MockIIODirectory struct {
// contains filtered or unexported fields
}
MockIIODirectory is a mock of IIODirectory interface.
func NewMockIIODirectory ¶
func NewMockIIODirectory(ctrl *gomock.Controller) *MockIIODirectory
NewMockIIODirectory creates a new mock instance.
func (*MockIIODirectory) EXPECT ¶
func (m *MockIIODirectory) EXPECT() *MockIIODirectoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIIODirectory) FindDirectories ¶
func (m *MockIIODirectory) FindDirectories() []IIODirectory
FindDirectories mocks base method.
func (*MockIIODirectory) FindFiles ¶
func (m *MockIIODirectory) FindFiles() []IIOFile
FindFiles mocks base method.
func (*MockIIODirectory) GetName ¶
func (m *MockIIODirectory) GetName() string
GetName mocks base method.
func (*MockIIODirectory) GetParent ¶
func (m *MockIIODirectory) GetParent() IIODirectory
GetParent mocks base method.
func (*MockIIODirectory) GetPath ¶
func (m *MockIIODirectory) GetPath() string
GetPath mocks base method.
func (*MockIIODirectory) IsExist ¶
func (m *MockIIODirectory) IsExist() bool
IsExist mocks base method.
type MockIIODirectoryMockRecorder ¶
type MockIIODirectoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIIODirectoryMockRecorder is the mock recorder for MockIIODirectory.
func (*MockIIODirectoryMockRecorder) FindDirectories ¶
func (mr *MockIIODirectoryMockRecorder) FindDirectories() *gomock.Call
FindDirectories indicates an expected call of FindDirectories.
func (*MockIIODirectoryMockRecorder) FindFiles ¶
func (mr *MockIIODirectoryMockRecorder) FindFiles() *gomock.Call
FindFiles indicates an expected call of FindFiles.
func (*MockIIODirectoryMockRecorder) GetName ¶
func (mr *MockIIODirectoryMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockIIODirectoryMockRecorder) GetParent ¶
func (mr *MockIIODirectoryMockRecorder) GetParent() *gomock.Call
GetParent indicates an expected call of GetParent.
func (*MockIIODirectoryMockRecorder) GetPath ¶
func (mr *MockIIODirectoryMockRecorder) GetPath() *gomock.Call
GetPath indicates an expected call of GetPath.
func (*MockIIODirectoryMockRecorder) IsExist ¶
func (mr *MockIIODirectoryMockRecorder) IsExist() *gomock.Call
IsExist indicates an expected call of IsExist.
type MockIIOFactory ¶
type MockIIOFactory struct {
// contains filtered or unexported fields
}
MockIIOFactory is a mock of IIOFactory interface.
func NewMockIIOFactory ¶
func NewMockIIOFactory(ctrl *gomock.Controller) *MockIIOFactory
NewMockIIOFactory creates a new mock instance.
func (*MockIIOFactory) BuildDirectory ¶
func (m *MockIIOFactory) BuildDirectory(pathArgs ...string) IIODirectory
BuildDirectory mocks base method.
func (*MockIIOFactory) BuildFile ¶
func (m *MockIIOFactory) BuildFile(pathArgs ...string) IIOFile
BuildFile mocks base method.
func (*MockIIOFactory) EXPECT ¶
func (m *MockIIOFactory) EXPECT() *MockIIOFactoryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIIOFactoryMockRecorder ¶
type MockIIOFactoryMockRecorder struct {
// contains filtered or unexported fields
}
MockIIOFactoryMockRecorder is the mock recorder for MockIIOFactory.
func (*MockIIOFactoryMockRecorder) BuildDirectory ¶
func (mr *MockIIOFactoryMockRecorder) BuildDirectory(pathArgs ...interface{}) *gomock.Call
BuildDirectory indicates an expected call of BuildDirectory.
func (*MockIIOFactoryMockRecorder) BuildFile ¶
func (mr *MockIIOFactoryMockRecorder) BuildFile(pathArgs ...interface{}) *gomock.Call
BuildFile indicates an expected call of BuildFile.
type MockIIOFile ¶
type MockIIOFile struct {
// contains filtered or unexported fields
}
MockIIOFile is a mock of IIOFile interface.
func NewMockIIOFile ¶
func NewMockIIOFile(ctrl *gomock.Controller) *MockIIOFile
NewMockIIOFile creates a new mock instance.
func (*MockIIOFile) EXPECT ¶
func (m *MockIIOFile) EXPECT() *MockIIOFileMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIIOFile) GetParent ¶
func (m *MockIIOFile) GetParent() IIODirectory
GetParent mocks base method.
func (*MockIIOFile) Read ¶
func (m *MockIIOFile) Read(data interface{}) error
Read mocks base method.
func (*MockIIOFile) Write ¶
func (m *MockIIOFile) Write(data interface{}) error
Write mocks base method.
type MockIIOFileMockRecorder ¶
type MockIIOFileMockRecorder struct {
// contains filtered or unexported fields
}
MockIIOFileMockRecorder is the mock recorder for MockIIOFile.
func (*MockIIOFileMockRecorder) GetExt ¶
func (mr *MockIIOFileMockRecorder) GetExt() *gomock.Call
GetExt indicates an expected call of GetExt.
func (*MockIIOFileMockRecorder) GetName ¶
func (mr *MockIIOFileMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockIIOFileMockRecorder) GetParent ¶
func (mr *MockIIOFileMockRecorder) GetParent() *gomock.Call
GetParent indicates an expected call of GetParent.
func (*MockIIOFileMockRecorder) GetPath ¶
func (mr *MockIIOFileMockRecorder) GetPath() *gomock.Call
GetPath indicates an expected call of GetPath.
func (*MockIIOFileMockRecorder) IsExist ¶
func (mr *MockIIOFileMockRecorder) IsExist() *gomock.Call
IsExist indicates an expected call of IsExist.
func (*MockIIOFileMockRecorder) Read ¶
func (mr *MockIIOFileMockRecorder) Read(data interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockIIOFileMockRecorder) Write ¶
func (mr *MockIIOFileMockRecorder) Write(data interface{}) *gomock.Call
Write indicates an expected call of Write.
type MockIIONode ¶
type MockIIONode struct {
// contains filtered or unexported fields
}
MockIIONode is a mock of IIONode interface.
func NewMockIIONode ¶
func NewMockIIONode(ctrl *gomock.Controller) *MockIIONode
NewMockIIONode creates a new mock instance.
func (*MockIIONode) EXPECT ¶
func (m *MockIIONode) EXPECT() *MockIIONodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIIONode) GetParent ¶
func (m *MockIIONode) GetParent() IIODirectory
GetParent mocks base method.
type MockIIONodeMockRecorder ¶
type MockIIONodeMockRecorder struct {
// contains filtered or unexported fields
}
MockIIONodeMockRecorder is the mock recorder for MockIIONode.
func (*MockIIONodeMockRecorder) GetName ¶
func (mr *MockIIONodeMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockIIONodeMockRecorder) GetParent ¶
func (mr *MockIIONodeMockRecorder) GetParent() *gomock.Call
GetParent indicates an expected call of GetParent.
func (*MockIIONodeMockRecorder) GetPath ¶
func (mr *MockIIONodeMockRecorder) GetPath() *gomock.Call
GetPath indicates an expected call of GetPath.
func (*MockIIONodeMockRecorder) IsExist ¶
func (mr *MockIIONodeMockRecorder) IsExist() *gomock.Call
IsExist indicates an expected call of IsExist.
type MockIIOPath ¶
type MockIIOPath struct {
// contains filtered or unexported fields
}
MockIIOPath is a mock of IIOPath interface.
func NewMockIIOPath ¶
func NewMockIIOPath(ctrl *gomock.Controller) *MockIIOPath
NewMockIIOPath creates a new mock instance.
func (*MockIIOPath) EXPECT ¶
func (m *MockIIOPath) EXPECT() *MockIIOPathMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIIOPath) Join ¶
func (m *MockIIOPath) Join(paths ...string) string
Join mocks base method.
type MockIIOPathMockRecorder ¶
type MockIIOPathMockRecorder struct {
// contains filtered or unexported fields
}
MockIIOPathMockRecorder is the mock recorder for MockIIOPath.
func (*MockIIOPathMockRecorder) GetRoot ¶
func (mr *MockIIOPathMockRecorder) GetRoot() *gomock.Call
GetRoot indicates an expected call of GetRoot.
func (*MockIIOPathMockRecorder) Join ¶
func (mr *MockIIOPathMockRecorder) Join(paths ...interface{}) *gomock.Call
Join indicates an expected call of Join.
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(key, format 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) Fatal ¶
func (mr *MockILogMockRecorder) Fatal() *gomock.Call
Fatal indicates an expected call of Fatal.
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 MockIModelCreatedOnSetter ¶
type MockIModelCreatedOnSetter struct {
// contains filtered or unexported fields
}
MockIModelCreatedOnSetter is a mock of IModelCreatedOnSetter interface.
func NewMockIModelCreatedOnSetter ¶
func NewMockIModelCreatedOnSetter(ctrl *gomock.Controller) *MockIModelCreatedOnSetter
NewMockIModelCreatedOnSetter creates a new mock instance.
func (*MockIModelCreatedOnSetter) EXPECT ¶
func (m *MockIModelCreatedOnSetter) EXPECT() *MockIModelCreatedOnSetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIModelCreatedOnSetter) SetCreatedOn ¶
func (m *MockIModelCreatedOnSetter) SetCreatedOn(v int64)
SetCreatedOn mocks base method.
type MockIModelCreatedOnSetterMockRecorder ¶
type MockIModelCreatedOnSetterMockRecorder struct {
// contains filtered or unexported fields
}
MockIModelCreatedOnSetterMockRecorder is the mock recorder for MockIModelCreatedOnSetter.
func (*MockIModelCreatedOnSetterMockRecorder) SetCreatedOn ¶
func (mr *MockIModelCreatedOnSetterMockRecorder) SetCreatedOn(v interface{}) *gomock.Call
SetCreatedOn indicates an expected call of SetCreatedOn.
type MockIModelDeletedOnSetter ¶
type MockIModelDeletedOnSetter struct {
// contains filtered or unexported fields
}
MockIModelDeletedOnSetter is a mock of IModelDeletedOnSetter interface.
func NewMockIModelDeletedOnSetter ¶
func NewMockIModelDeletedOnSetter(ctrl *gomock.Controller) *MockIModelDeletedOnSetter
NewMockIModelDeletedOnSetter creates a new mock instance.
func (*MockIModelDeletedOnSetter) EXPECT ¶
func (m *MockIModelDeletedOnSetter) EXPECT() *MockIModelDeletedOnSetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIModelDeletedOnSetter) SetDeletedOn ¶
func (m *MockIModelDeletedOnSetter) SetDeletedOn(v int64)
SetDeletedOn mocks base method.
type MockIModelDeletedOnSetterMockRecorder ¶
type MockIModelDeletedOnSetterMockRecorder struct {
// contains filtered or unexported fields
}
MockIModelDeletedOnSetterMockRecorder is the mock recorder for MockIModelDeletedOnSetter.
func (*MockIModelDeletedOnSetterMockRecorder) SetDeletedOn ¶
func (mr *MockIModelDeletedOnSetterMockRecorder) SetDeletedOn(v interface{}) *gomock.Call
SetDeletedOn indicates an expected call of SetDeletedOn.
type MockIModelModifiedOnSetter ¶
type MockIModelModifiedOnSetter struct {
// contains filtered or unexported fields
}
MockIModelModifiedOnSetter is a mock of IModelModifiedOnSetter interface.
func NewMockIModelModifiedOnSetter ¶
func NewMockIModelModifiedOnSetter(ctrl *gomock.Controller) *MockIModelModifiedOnSetter
NewMockIModelModifiedOnSetter creates a new mock instance.
func (*MockIModelModifiedOnSetter) EXPECT ¶
func (m *MockIModelModifiedOnSetter) EXPECT() *MockIModelModifiedOnSetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIModelModifiedOnSetter) SetModifiedOn ¶
func (m *MockIModelModifiedOnSetter) SetModifiedOn(v int64)
SetModifiedOn mocks base method.
type MockIModelModifiedOnSetterMockRecorder ¶
type MockIModelModifiedOnSetterMockRecorder struct {
// contains filtered or unexported fields
}
MockIModelModifiedOnSetterMockRecorder is the mock recorder for MockIModelModifiedOnSetter.
func (*MockIModelModifiedOnSetterMockRecorder) SetModifiedOn ¶
func (mr *MockIModelModifiedOnSetterMockRecorder) SetModifiedOn(v interface{}) *gomock.Call
SetModifiedOn indicates an expected call of SetModifiedOn.
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.
func (*MockINowTimeMockRecorder) UnixNano ¶
func (mr *MockINowTimeMockRecorder) UnixNano() *gomock.Call
UnixNano indicates an expected call of UnixNano.
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) EXPECT ¶
func (m *MockIRedis) EXPECT() *MockIRedisMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIRedisMockRecorder ¶
type MockIRedisMockRecorder struct {
// contains filtered or unexported fields
}
MockIRedisMockRecorder is the mock recorder for MockIRedis.
func (*MockIRedisMockRecorder) Get ¶
func (mr *MockIRedisMockRecorder) Get(k interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockIRedisMockRecorder) Set ¶
func (mr *MockIRedisMockRecorder) Set(k, v, expires interface{}) *gomock.Call
Set indicates an expected call of Set.
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 IDbModel)
RegisterAdd mocks base method.
func (*MockIUnitOfWorkRepository) RegisterRemove ¶
func (m *MockIUnitOfWorkRepository) RegisterRemove(entry IDbModel)
RegisterRemove mocks base method.
func (*MockIUnitOfWorkRepository) RegisterSave ¶
func (m *MockIUnitOfWorkRepository) RegisterSave(entry 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.go
- i-api_mock.go
- i-context-wrapper.go
- i-context-wrapper_mock.go
- i-db-factory.go
- i-db-factory_mock.go
- i-db-model.go
- i-db-model_mock.go
- i-db-query.go
- i-db-query_mock.go
- i-db-repository.go
- i-db-repository_mock.go
- i-error.go
- i-error_mock.go
- i-io-directory.go
- i-io-directory_mock.go
- i-io-factory.go
- i-io-factory_mock.go
- i-io-file.go
- i-io-file_mock.go
- i-io-node.go
- i-io-node_mock.go
- i-io-path.go
- i-io-path_mock.go
- i-log-factory.go
- i-log-factory_mock.go
- i-log.go
- i-log_mock.go
- i-model-created-on-setter.go
- i-model-created-on-setter_mock.go
- i-model-deleted-on-setter.go
- i-model-deleted-on-setter_mock.go
- i-model-modified-on-setter.go
- i-model-modified-on-setter_mock.go
- i-now-time.go
- i-now-time_mock.go
- i-redis.go
- i-redis_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