Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractProvider ¶
ContractProvider is the mock provider for contracts
func NewContractProvider ¶
func NewContractProvider() *ContractProvider
NewContractProvider creates a new mock client provider.
func (*ContractProvider) Configure ¶
func (mock *ContractProvider) Configure(config map[string]interface{}) error
Configure configures the provider.
func (*ContractProvider) Create ¶
func (mock *ContractProvider) Create() (security.Contract, error)
Create creates a contract.
func (*ContractProvider) Get ¶
func (mock *ContractProvider) Get(id uint32) (security.Contract, bool)
Get returns a ContractData fetched by its id.
func (*ContractProvider) Name ¶
func (mock *ContractProvider) Name() string
Name returns the name of the provider.
Click to show internal directories.
Click to hide internal directories.