Documentation ¶
Overview ¶
* Copyright © 2018. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.
* Copyright © 2018. TIBCO Software Inc. * This file is subject to the license terms contained * in the license file that is distributed with this file.
Index ¶
- func NewFactory(md *trigger.Metadata) trigger.Factory
- type TXNHandler
- type TXNTrigger
- func (t *TXNTrigger) Initialize(ctx trigger.InitContext) error
- func (t *TXNTrigger) Invoke(stub services.ContainerService, txn rttxn.TransactionService) (status bool, data interface{}, err error)
- func (t *TXNTrigger) Metadata() *trigger.Metadata
- func (t *TXNTrigger) Start() error
- func (t *TXNTrigger) Stop() error
- type TXNTriggerFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TXNHandler ¶
type TXNHandler struct {
// contains filtered or unexported fields
}
type TXNTrigger ¶
type TXNTrigger struct {
// contains filtered or unexported fields
}
Trigger must define a struct
func (*TXNTrigger) Initialize ¶
func (t *TXNTrigger) Initialize(ctx trigger.InitContext) error
func (*TXNTrigger) Invoke ¶
func (t *TXNTrigger) Invoke(stub services.ContainerService, txn rttxn.TransactionService) (status bool, data interface{}, err error)
Trigger must implement this function from dovetail-contrib/smartcontract-go/runtime/trigger SmartContractTrigger interface
func (*TXNTrigger) Metadata ¶
func (t *TXNTrigger) Metadata() *trigger.Metadata
Returns trigger metadata Trigger must define this method
func (*TXNTrigger) Start ¶
func (t *TXNTrigger) Start() error
Start trigger. Start will be called once engine is started successfully.
func (*TXNTrigger) Stop ¶
func (t *TXNTrigger) Stop() error
Stop trigger. Stop will be called in case engine is gracefully stopped.
type TXNTriggerFactory ¶
type TXNTriggerFactory struct {
// contains filtered or unexported fields
}
Trigger must define a factory