Documentation ¶
Index ¶
- func Load()
- func NewApplicationInterface(kvDriver kvDatabase.IDriver, sqlDriver simpleSQLDatabase.IDriver, ...) (app chainStructure.IBlockchainExternalApplication)
- type MemoApplication
- func (m *MemoApplication) Execute(req blockchainRequest.Entity, blk block.Entity, _ uint32) (result applicationResult.Entity, err error)
- func (m *MemoApplication) GetActionAsRequest(req blockchainRequest.Entity) blockchainRequest.Entity
- func (m *MemoApplication) Information() (info service.BasicInformation)
- func (m *MemoApplication) Name() (name string)
- func (m *MemoApplication) PreExecute(req blockchainRequest.Entity, _ block.Entity) (result []byte, err error)
- func (m *MemoApplication) PushClientRequest(req blockchainRequest.Entity) (result interface{}, err error)
- func (m *MemoApplication) Query(req []byte) (result interface{}, err error)
- func (m *MemoApplication) QueryMemo(hash string) (memo memoSpace.Memo, err error)
- func (m *MemoApplication) RequestsForBlock(_ block.Entity) (reqList []blockchainRequest.Entity, cnt uint32)
- func (m *MemoApplication) VerifyReq(req blockchainRequest.Entity) (passed bool, memo memoSpace.Memo, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplicationInterface ¶
func NewApplicationInterface(kvDriver kvDatabase.IDriver, sqlDriver simpleSQLDatabase.IDriver, tools crypto.Tools) (app chainStructure.IBlockchainExternalApplication)
Types ¶
type MemoApplication ¶
type MemoApplication struct { chainStructure.BlankApplication CryptoTools crypto.Tools // contains filtered or unexported fields }
func (*MemoApplication) Execute ¶
func (m *MemoApplication) Execute( req blockchainRequest.Entity, blk block.Entity, _ uint32, ) (result applicationResult.Entity, err error)
func (*MemoApplication) GetActionAsRequest ¶
func (m *MemoApplication) GetActionAsRequest(req blockchainRequest.Entity) blockchainRequest.Entity
func (*MemoApplication) Information ¶
func (m *MemoApplication) Information() (info service.BasicInformation)
func (*MemoApplication) Name ¶
func (m *MemoApplication) Name() (name string)
func (*MemoApplication) PreExecute ¶
func (m *MemoApplication) PreExecute(req blockchainRequest.Entity, _ block.Entity) (result []byte, err error)
func (*MemoApplication) PushClientRequest ¶
func (m *MemoApplication) PushClientRequest(req blockchainRequest.Entity) (result interface{}, err error)
func (*MemoApplication) Query ¶
func (m *MemoApplication) Query(req []byte) (result interface{}, err error)
func (*MemoApplication) QueryMemo ¶
func (m *MemoApplication) QueryMemo(hash string) (memo memoSpace.Memo, err error)
func (*MemoApplication) RequestsForBlock ¶
func (m *MemoApplication) RequestsForBlock(_ block.Entity) (reqList []blockchainRequest.Entity, cnt uint32)
func (*MemoApplication) VerifyReq ¶
func (m *MemoApplication) VerifyReq(req blockchainRequest.Entity) (passed bool, memo memoSpace.Memo, err error)
Click to show internal directories.
Click to hide internal directories.