Documentation ¶
Index ¶
- Constants
- func CallCache() *generalCallCache
- func DummyImplCfg() dummyImplCfg
- func DummyTemplate(ccname string) (ret tx.CollectiveTxs)
- func GeneralTemplate(ccname string, cfg AddrSpaceConfig) (ret tx.CollectiveTxs)
- func InnerinvokeImpl(cc txgen.InnerChaincode) *innerInvokeConfig
- func NewConfig(tag string) *addressSpaceConfig
- func QueryHandler(cfg AddrSpaceConfig) txh.TxHandler
- func RegHandler(cfg AddrSpaceConfig) txh.TxHandler
- func Verifier(cfg AddrSpaceConfig) *externalAddrVerifier
- type AddrSpaceConfig
- type AddressSpace
- type GeneralCall
Constants ¶
View Source
const ( Method_Reg = "ADDRSPACE.REG" Method_Query = "ADDRSPACE.QUERY" )
Variables ¶
This section is empty.
Functions ¶
func CallCache ¶
func CallCache() *generalCallCache
func DummyImplCfg ¶
func DummyImplCfg() dummyImplCfg
func GeneralTemplate ¶
func GeneralTemplate(ccname string, cfg AddrSpaceConfig) (ret tx.CollectiveTxs)
func InnerinvokeImpl ¶
func InnerinvokeImpl(cc txgen.InnerChaincode) *innerInvokeConfig
func QueryHandler ¶
func QueryHandler(cfg AddrSpaceConfig) txh.TxHandler
func RegHandler ¶
func RegHandler(cfg AddrSpaceConfig) txh.TxHandler
func Verifier ¶
func Verifier(cfg AddrSpaceConfig) *externalAddrVerifier
Types ¶
type AddrSpaceConfig ¶
type AddrSpaceConfig interface {
NewTx(shim.ChaincodeStubInterface, []byte) AddressSpace
}
type AddressSpace ¶
type GeneralCall ¶
func (GeneralCall) CacheImpl ¶
func (i GeneralCall) CacheImpl(c *generalCallCache) cachedGeneralCall
func (GeneralCall) NormalizeAddress ¶
func (i GeneralCall) NormalizeAddress(addr []byte) ([]byte, error)
notice: there is not really a NormalizeAddress call (we just do a query and use the returning result)
func (GeneralCall) QueryPrefix ¶
func (i GeneralCall) QueryPrefix() ([]byte, error)
func (GeneralCall) RegisterCC ¶
func (i GeneralCall) RegisterCC() error
Click to show internal directories.
Click to hide internal directories.