Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Factory ¶
type Factory struct { }
Factory for trigger
type HandlerSettings ¶
type HandlerSettings struct { Name string `md:"name,required"` Arguments []*Attribute `md:"arguments"` }
HandlerSettings for the trigger arguments are of parameter names and associated JSON data type type is any valid JSON type, i.e., string, number, integer, boolean, array, object.
func (*HandlerSettings) FromMap ¶
func (h *HandlerSettings) FromMap(values map[string]interface{}) error
FromMap sets handling settings from a map
type Output ¶
type Output struct { Parameters map[string]interface{} `md:"parameters"` Transient map[string]interface{} `md:"transient"` TxID string `md:"txID"` TxTime string `md:"txTime"` CID map[string]string `md:"cid"` }
Output of the trigger
type Reply ¶
type Reply struct { Status int `md:"status"` Message string `md:"message"` Returns interface{} `md:"returns"` }
Reply from the trigger
type Trigger ¶
type Trigger struct {
// contains filtered or unexported fields
}
Trigger is the Fabric transaction Trigger implementation
func (*Trigger) Initialize ¶
func (t *Trigger) Initialize(ctx trigger.InitContext) error
Initialize implements trigger.Init.Initialize
Click to show internal directories.
Click to hide internal directories.