Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FabricStub is the name of flow property for passing chaincode stub to activities
FabricStub = "_chaincode_stub"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
Trigger is a stub for your Trigger implementation
func GetTrigger ¶
GetTrigger returns the cached trigger for a specified function name; return false in the second value if no trigger is cached for the specified fn
func (*Trigger) Initialize ¶
func (t *Trigger) Initialize(ctx trigger.InitContext) error
Initialize implements trigger.Init.Initialize
func (*Trigger) Invoke ¶
func (t *Trigger) Invoke(stub shim.ChaincodeStubInterface, fn string, args []string) (string, error)
Invoke starts the trigger and invokes the action registered in the handler, and returns result as JSON string
type TriggerFactory ¶
type TriggerFactory struct {
// contains filtered or unexported fields
}
TriggerFactory Fabric Trigger factory
Click to show internal directories.
Click to hide internal directories.