Documentation ¶
Index ¶
- type DocumentCC
- func (cc *DocumentCC) Chaincode() shim.Chaincode
- func (cc *DocumentCC) GetDBArtifacts(collNames []string) map[string]*ccapi.DBArtifacts
- func (cc *DocumentCC) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *DocumentCC) Invoke(stub shim.ChaincodeStubInterface) (resp pb.Response)
- func (cc *DocumentCC) Name() string
- func (cc *DocumentCC) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentCC ¶
type DocumentCC struct {
// contains filtered or unexported fields
}
DocumentCC is used to setup database, collection and indexes for documents
func (*DocumentCC) Chaincode ¶ added in v0.1.1
func (cc *DocumentCC) Chaincode() shim.Chaincode
Chaincode returns the DocumentCC chaincode
func (*DocumentCC) GetDBArtifacts ¶ added in v0.1.1
func (cc *DocumentCC) GetDBArtifacts(collNames []string) map[string]*ccapi.DBArtifacts
GetDBArtifacts returns Couch DB indexes for the collections in this chaincode NOTE: All collections in this chaincode have the same indexes except for meta_data
func (*DocumentCC) Init ¶
func (cc *DocumentCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init - nothing to do for now
func (*DocumentCC) Invoke ¶
func (cc *DocumentCC) Invoke(stub shim.ChaincodeStubInterface) (resp pb.Response)
Invoke manages document lifecycle operations (write, read)
func (*DocumentCC) Name ¶ added in v0.1.1
func (cc *DocumentCC) Name() string
Name returns the name of this chaincode
func (*DocumentCC) Version ¶ added in v0.1.2
func (cc *DocumentCC) Version() string
Version returns the version of this chaincode
Click to show internal directories.
Click to hide internal directories.