transaction

package
v0.2.1-develop.125 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory(md *trigger.Metadata) trigger.Factory

NewFactory create a new Trigger factory Trigger must define this function

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

func (*TXNTriggerFactory) New

Creates a new trigger instance for a given id Trigger must define this method

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL