package
Version:
v0.2.1-develop.104
Opens a new window with list of versions in this module.
Published: Sep 25, 2019
License: BSD-3-Clause
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New creates a new Activity
Activity is a stub for executing Hyperledger Fabric get operations
Eval implements activity.Activity.Eval
Metadata implements activity.Activity.Metadata
type Input struct {
StateKey string `md:"key,required"`
Operation string `md:"operation,required,allowed(ADD,DELETE,LIST,SET)"`
Role string `md:"role,allowed(MEMBER,ADMIN,CLIENT,PEER)"`
Organizations string `md:"organizations"`
Policy string `md:"policy"`
IsPrivate bool `md:"isPrivate,required"`
PrivateCollection string `md:"collection"`
}
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 string `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.