contract

package
v0.0.0-...-9c76002 Latest Latest
Warning

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

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

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.

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 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 IRedis

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

type MockIApi

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

MockIApi is a mock of IApi interface.

func NewMockIApi

func NewMockIApi(ctrl *gomock.Controller) *MockIApi

NewMockIApi creates a new mock instance.

func (*MockIApi) Call

func (m *MockIApi) Call() (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 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 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) Del

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

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

Del indicates an expected call of Del.

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.

Jump to

Keyboard shortcuts

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