contract

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: GPL-3.0 Imports: 5 Imported by: 3

Documentation

Overview

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Package contract is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IApi

type IApi interface {
	Call() (interface{}, error)
}

type IApiFactory

type IApiFactory interface {
	Build(endpoint, apiName string) IApi
	Register(endpoint, apiName string, apiInstance IApi)
}

type IContextWrapper

type IContextWrapper interface {
	WithContext(context.Context) interface{}
}

type IDbFactory

type IDbFactory interface {
	Db(entry IDbModel, extra ...interface{}) IDbRepository
	Uow() IUnitOfWork
}

IDbFactory is 数据工厂

type IDbModel

type IDbModel interface {
	GetID() string
}

IDbModel 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 IError

type IError interface {
	error

	GetCode() errorcode.Value
	GetData() interface{}
}

type IIODirectory

type IIODirectory interface {
	IIONode

	FindDirectories() []IIODirectory
	FindFiles() []IIOFile
}

type IIOFactory

type IIOFactory interface {
	BuildDirectory(pathArgs ...string) IIODirectory
	BuildFile(pathArgs ...string) IIOFile
}

type IIOFile

type IIOFile interface {
	IIONode

	GetExt() string
	Read(data interface{}) error
	Write(data interface{}) error
}

type IIONode

type IIONode interface {
	GetName() string
	GetParent() IIODirectory
	GetPath() string
	IsExist() bool
}

type IIOPath

type IIOPath interface {
	GetRoot() string
	Join(paths ...string) string
}

type ILog

type ILog interface {
	AddLabel(key, format string, v ...interface{}) ILog
	Debug()
	Error(err error)
	Fatal()
	Info()
	Warning()
}

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 INowTime

type INowTime interface {
	Unix() int64
	UnixNano() int64
}

type IRedis

type IRedis interface {
	Get(k string) (string, error)
	Set(k, v string, expires time.Duration) (bool, error)
}

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) Call

func (m *MockIApi) Call() (interface{}, error)

Call mocks base method.

func (*MockIApi) EXPECT

func (m *MockIApi) EXPECT() *MockIApiMockRecorder

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

type MockIApiFactory

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

MockIApiFactory is a mock of IApiFactory interface.

func NewMockIApiFactory

func NewMockIApiFactory(ctrl *gomock.Controller) *MockIApiFactory

NewMockIApiFactory creates a new mock instance.

func (*MockIApiFactory) Build

func (m *MockIApiFactory) Build(endpoint, apiName string) IApi

Build mocks base method.

func (*MockIApiFactory) EXPECT

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

func (*MockIApiFactory) Register

func (m *MockIApiFactory) Register(endpoint, 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

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

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

func (*MockIDbFactory) Uow

func (m *MockIDbFactory) Uow() IUnitOfWork

Uow mocks base method.

type MockIDbFactoryMockRecorder

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

MockIDbFactoryMockRecorder is the mock recorder for MockIDbFactory.

func (*MockIDbFactoryMockRecorder) Db

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

Db indicates an expected call of Db.

func (*MockIDbFactoryMockRecorder) Uow

Uow indicates an expected call of Uow.

type 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

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

func (*MockIDbModel) GetID

func (m *MockIDbModel) GetID() string

GetID mocks base method.

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) Count

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

Count mocks base method.

func (*MockIDbQuery) EXPECT

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

func (*MockIDbQuery) Order

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

Order mocks base method.

func (*MockIDbQuery) OrderByDesc

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

OrderByDesc mocks base method.

func (*MockIDbQuery) Skip

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

Skip mocks base method.

func (*MockIDbQuery) Take

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

Take mocks base method.

func (*MockIDbQuery) ToArray

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

ToArray mocks base method.

func (*MockIDbQuery) Where

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

Where mocks base method.

type MockIDbQueryMockRecorder

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

MockIDbQueryMockRecorder is the mock recorder for MockIDbQuery.

func (*MockIDbQueryMockRecorder) Count

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

Count indicates an expected call of Count.

func (*MockIDbQueryMockRecorder) Order

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

Order indicates an expected call of Order.

func (*MockIDbQueryMockRecorder) OrderByDesc

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

OrderByDesc indicates an expected call of OrderByDesc.

func (*MockIDbQueryMockRecorder) Skip

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

Skip indicates an expected call of Skip.

func (*MockIDbQueryMockRecorder) Take

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

Take indicates an expected call of Take.

func (*MockIDbQueryMockRecorder) ToArray

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

ToArray indicates an expected call of ToArray.

func (*MockIDbQueryMockRecorder) Where

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

Where indicates an expected call of Where.

type MockIDbRepository

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

MockIDbRepository is a mock of IDbRepository interface.

func NewMockIDbRepository

func NewMockIDbRepository(ctrl *gomock.Controller) *MockIDbRepository

NewMockIDbRepository creates a new mock instance.

func (*MockIDbRepository) Add

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

Add mocks base method.

func (*MockIDbRepository) EXPECT

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

func (*MockIDbRepository) Query

func (m *MockIDbRepository) Query() IDbQuery

Query mocks base method.

func (*MockIDbRepository) Remove

func (m *MockIDbRepository) Remove(entry 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

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) Error

func (m *MockIError) Error() string

Error mocks base method.

func (*MockIError) GetCode

func (m *MockIError) GetCode() errorcode.Value

GetCode mocks base method.

func (*MockIError) GetData

func (m *MockIError) GetData() interface{}

GetData 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

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

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) GetExt

func (m *MockIIOFile) GetExt() string

GetExt mocks base method.

func (*MockIIOFile) GetName

func (m *MockIIOFile) GetName() string

GetName mocks base method.

func (*MockIIOFile) GetParent

func (m *MockIIOFile) GetParent() IIODirectory

GetParent mocks base method.

func (*MockIIOFile) GetPath

func (m *MockIIOFile) GetPath() string

GetPath mocks base method.

func (*MockIIOFile) IsExist

func (m *MockIIOFile) IsExist() bool

IsExist 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) GetName

func (m *MockIIONode) GetName() string

GetName mocks base method.

func (*MockIIONode) GetParent

func (m *MockIIONode) GetParent() IIODirectory

GetParent mocks base method.

func (*MockIIONode) GetPath

func (m *MockIIONode) GetPath() string

GetPath mocks base method.

func (*MockIIONode) IsExist

func (m *MockIIONode) IsExist() bool

IsExist 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) GetRoot

func (m *MockIIOPath) GetRoot() string

GetRoot mocks base method.

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) AddLabel

func (m *MockILog) AddLabel(key, format string, v ...interface{}) ILog

AddLabel mocks base method.

func (*MockILog) Debug

func (m *MockILog) Debug()

Debug mocks base method.

func (*MockILog) EXPECT

func (m *MockILog) EXPECT() *MockILogMockRecorder

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

func (*MockILog) Error

func (m *MockILog) Error(err error)

Error mocks base method.

func (*MockILog) Fatal

func (m *MockILog) Fatal()

Fatal mocks base method.

func (*MockILog) Info

func (m *MockILog) Info()

Info mocks base method.

func (*MockILog) Warning

func (m *MockILog) Warning()

Warning mocks base method.

type MockILogFactory

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

MockILogFactory is a mock of ILogFactory interface.

func NewMockILogFactory

func NewMockILogFactory(ctrl *gomock.Controller) *MockILogFactory

NewMockILogFactory creates a new mock instance.

func (*MockILogFactory) Build

func (m *MockILogFactory) Build() ILog

Build mocks base method.

func (*MockILogFactory) EXPECT

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

type MockILogFactoryMockRecorder

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

MockILogFactoryMockRecorder is the mock recorder for MockILogFactory.

func (*MockILogFactoryMockRecorder) Build

Build indicates an expected call of Build.

type MockILogMockRecorder

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

MockILogMockRecorder is the mock recorder for MockILog.

func (*MockILogMockRecorder) AddLabel

func (mr *MockILogMockRecorder) AddLabel(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

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

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

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

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

func (*MockINowTime) Unix

func (m *MockINowTime) Unix() int64

Unix mocks base method.

func (*MockINowTime) UnixNano

func (m *MockINowTime) UnixNano() int64

UnixNano mocks base method.

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.

func (*MockIRedis) Get

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

Get mocks base method.

func (*MockIRedis) Set

func (m *MockIRedis) Set(k, v string, expires time.Duration) (bool, error)

Set mocks base method.

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) Commit

func (m *MockIUnitOfWork) Commit() error

Commit mocks base method.

func (*MockIUnitOfWork) EXPECT

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

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

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

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.

Jump to

Keyboard shortcuts

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