Documentation ¶
Overview ¶
This go package creates a hyperledger contract class for managing the different features of GoT. GoT stores data about the different repositories hashes and repository access control through this contract. the remote package mainly uses the hyperledger contract class and the got datastructures the got datastructures inner package provides the necessary data modeling and validation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LedgerPair ¶
type LedgerPair struct {
// contains filtered or unexported fields
}
This is the resulting key-value pair generated to store some the data in the hyperledger after the maping from complex data structurs is done.
type RepoContract ¶
type RepoContract struct { }
this struct is the wrapper for the different possible functionalities for managing data in the blockchain.
func (*RepoContract) Init ¶
func (contract *RepoContract) Init(stub shim.ChaincodeStubInterface) peer.Response
this function is required by the hyperledger API it is called on a new contract initializion
func (*RepoContract) Invoke ¶
func (contract *RepoContract) Invoke(stub shim.ChaincodeStubInterface) peer.Response
this function is responsible for the various possible calling for this Contract whether this calling is an invokation or query