Documentation ¶
Index ¶
- type DCASStubWrapperFactory
- type ExampleCC
- func (cc *ExampleCC) Chaincode() shim.Chaincode
- func (cc *ExampleCC) GetDBArtifacts(collNames []string) map[string]*ccapi.DBArtifacts
- func (cc *ExampleCC) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *ExampleCC) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *ExampleCC) Name() string
- func (cc *ExampleCC) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DCASStubWrapperFactory ¶ added in v0.1.5
type DCASStubWrapperFactory interface {
CreateDCASClientStubWrapper(coll string, stub shim.ChaincodeStubInterface) (dcasclient.DCAS, error)
}
DCASStubWrapperFactory creates a DCAS client wrapper around a stub
type ExampleCC ¶
type ExampleCC struct { DCASStubWrapperFactory // contains filtered or unexported fields }
ExampleCC example chaincode that puts and gets state and private data
func New ¶
func New(name string, dbArtifacts map[string]*ccapi.DBArtifacts, dcasClientFactory DCASStubWrapperFactory) *ExampleCC
New returns a new example chaincode instance
func (*ExampleCC) GetDBArtifacts ¶
func (cc *ExampleCC) GetDBArtifacts(collNames []string) map[string]*ccapi.DBArtifacts
GetDBArtifacts returns Couch DB indexes (if applicable)
func (*ExampleCC) Init ¶
func (cc *ExampleCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init is not used
Click to show internal directories.
Click to hide internal directories.