executor

package
v6.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Package executor 管理插件执行器

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetName

func GetName() string

GetName return manage name

func Init

func Init(name string, sub []byte)

Init resister a dirver

func IsSuperManager

func IsSuperManager(addr string) bool

IsSuperManager is supper manager or not

Types

type Action

type Action struct {
	// contains filtered or unexported fields
}

Action attribute

func NewAction

func NewAction(m *Manage, tx *types.Transaction) *Action

NewAction new a action object

type Manage

type Manage struct {
	drivers.DriverBase
}

Manage defines Manage object

func (*Manage) CheckReceiptExecOk

func (c *Manage) CheckReceiptExecOk() bool

CheckReceiptExecOk return true to check if receipt ty is ok

func (*Manage) CheckTx

func (c *Manage) CheckTx(tx *types.Transaction, index int) error

CheckTx checkout transaction

func (*Manage) ExecDelLocal_Modify

func (c *Manage) ExecDelLocal_Modify(transfer *types.ModifyConfig, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

ExecDelLocal_Modify defines execdellocal modify func

func (*Manage) ExecLocal_Modify

func (c *Manage) ExecLocal_Modify(transfer *types.ModifyConfig, tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)

ExecLocal_Modify defines execlocal modify func

func (*Manage) Exec_Modify

func (c *Manage) Exec_Modify(manageAction *types.ModifyConfig, tx *types.Transaction, index int) (*types.Receipt, error)

Exec_Modify modify exec

func (*Manage) GetDriverName

func (c *Manage) GetDriverName() string

GetDriverName return a drivername

func (*Manage) Query_GetConfigItem

func (c *Manage) Query_GetConfigItem(in *types.ReqString) (types.Message, error)

Query_GetConfigItem get config item

Jump to

Keyboard shortcuts

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