Documentation ¶
Index ¶
- Constants
- type PartitionMgr
- func (p *PartitionMgr) GetMainChain(stub shim.ChaincodeStubInterface) (*dm.MainChain, error)
- func (p *PartitionMgr) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (p *PartitionMgr) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (p *PartitionMgr) ListPartition(stub shim.ChaincodeStubInterface) ([]*dm.PartitionChain, error)
- func (p *PartitionMgr) RegisterPartition(stub shim.ChaincodeStubInterface, ...) pb.Response
- func (p *PartitionMgr) SetMainChain(stub shim.ChaincodeStubInterface, ...) pb.Response
- func (p *PartitionMgr) UpdatePartition(stub shim.ChaincodeStubInterface, ...) pb.Response
Constants ¶
View Source
const ErrorForbiddenAccess = "Forbidden access"
View Source
const MainChainKey = "MainChain"
View Source
const PartitionChainPrefix = "PC"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PartitionMgr ¶
type PartitionMgr struct { }
func (*PartitionMgr) GetMainChain ¶ added in v1.0.3
func (p *PartitionMgr) GetMainChain(stub shim.ChaincodeStubInterface) (*dm.MainChain, error)
func (*PartitionMgr) Init ¶
func (p *PartitionMgr) Init(stub shim.ChaincodeStubInterface) pb.Response
func (*PartitionMgr) Invoke ¶
func (p *PartitionMgr) Invoke(stub shim.ChaincodeStubInterface) pb.Response
func (*PartitionMgr) ListPartition ¶ added in v1.0.3
func (p *PartitionMgr) ListPartition(stub shim.ChaincodeStubInterface) ([]*dm.PartitionChain, error)
func (*PartitionMgr) RegisterPartition ¶ added in v1.0.3
func (p *PartitionMgr) RegisterPartition(stub shim.ChaincodeStubInterface, genesisHeaderRlp, forkUnitHash, forkUnitHeight, gasToken, status, syncModel, networkId, version, stableThreshold, crossChainToken string, peers []string) pb.Response
func (*PartitionMgr) SetMainChain ¶ added in v1.0.3
func (p *PartitionMgr) SetMainChain(stub shim.ChaincodeStubInterface, genesisHeaderHex, gasToken, status, syncModel, networkId, version, stableThreshold, crossChainToken string, peers []string) pb.Response
func (*PartitionMgr) UpdatePartition ¶ added in v1.0.3
func (p *PartitionMgr) UpdatePartition(stub shim.ChaincodeStubInterface, genesisHeaderRlp, forkUnitHash, forkUnitHeight, gasToken, status, syncModel, networkId, version, stableThreshold, crossChainToken string, peers []string) pb.Response
Click to show internal directories.
Click to hide internal directories.