Discover Packages
github.com/dovetail-lab/fabric-chaincode/activity/put
package
module
Version:
v1.2.0
Opens a new window with list of versions in this module.
Published: Oct 31, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
New creates a new Activity
Activity is a stub for executing Hyperledger Fabric put operations
Eval implements activity.Activity.Eval
Metadata implements activity.Activity.Metadata
type Input struct {
StateKey string `md:"key,required"`
StateData map[string ]interface{} `md:"data,required"`
PrivateCollection string `md:"privateCollection"`
CompositeKeys string `md:"compositeKeys"`
}
Input of the activity
FromMap sets activity input values from a map
ToMap converts activity input to a map
type Output struct {
Code int `md:"code"`
Message string `md:"message"`
StateKey string `md:"key"`
Result map[string ]interface{} `md:"result"`
}
Output of the activity
FromMap sets activity output values from a map
ToMap converts activity output to a map
Source Files
¶
Click to show internal directories.
Click to hide internal directories.