Documentation ¶
Overview ¶
Package executor 管理插件执行器
Index ¶
- func GetName() string
- func Init(name string, cfg *types.Chain33Config, sub []byte)
- func InitExecType()
- func IsSuperManager(cfg *types.Chain33Config, addr string) bool
- func NewConfigTable(kvdb db.KV) *table.Table
- type ConfigRow
- type Manage
- func (c *Manage) CheckReceiptExecOk() bool
- func (c *Manage) CheckTx(tx *types.Transaction, index int) error
- func (c *Manage) ExecDelLocal(tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
- func (c *Manage) ExecLocal_Apply(payload *mty.ApplyConfig, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Manage) ExecLocal_Approve(payload *mty.ApproveConfig, tx *types.Transaction, ...) (*types.LocalDBSet, error)
- func (c *Manage) Exec_Apply(payload *mty.ApplyConfig, tx *types.Transaction, index int) (*types.Receipt, error)
- func (c *Manage) Exec_Approve(payload *mty.ApproveConfig, tx *types.Transaction, index int) (*types.Receipt, error)
- func (c *Manage) Exec_Modify(manageAction *types.ModifyConfig, tx *types.Transaction, index int) (*types.Receipt, error)
- func (c *Manage) GetDriverName() string
- func (c *Manage) Query_GetConfigID(in *types.ReqString) (types.Message, error)
- func (c *Manage) Query_GetConfigItem(in *types.ReqString) (types.Message, error)
- func (c *Manage) Query_ListConfigID(req *mty.ReqQueryConfigList) (types.Message, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSuperManager ¶
func IsSuperManager(cfg *types.Chain33Config, addr string) bool
IsSuperManager is supper manager or not
Types ¶
type ConfigRow ¶ added in v1.66.1
type ConfigRow struct {
*mty.ConfigStatus
}
ConfigRow table meta 结构
func (*ConfigRow) CreateRow ¶ added in v1.66.1
CreateRow 新建数据行(注意index 数据一定也要保存到数据中,不能就保存heightindex)
type Manage ¶
type Manage struct {
drivers.DriverBase
}
Manage defines Manage object
func (*Manage) CheckReceiptExecOk ¶
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 ¶ added in v1.66.1
func (c *Manage) ExecDelLocal(tx *types.Transaction, receipt *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecDelLocal 重写基类
func (*Manage) ExecLocal_Apply ¶ added in v1.66.1
func (c *Manage) ExecLocal_Apply(payload *mty.ApplyConfig, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Apply local apply
func (*Manage) ExecLocal_Approve ¶ added in v1.66.1
func (c *Manage) ExecLocal_Approve(payload *mty.ApproveConfig, tx *types.Transaction, receiptData *types.ReceiptData, index int) (*types.LocalDBSet, error)
ExecLocal_Approve local approve
func (*Manage) Exec_Apply ¶ added in v1.66.1
func (c *Manage) Exec_Apply(payload *mty.ApplyConfig, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Apply apply config
func (*Manage) Exec_Approve ¶ added in v1.66.1
func (c *Manage) Exec_Approve(payload *mty.ApproveConfig, tx *types.Transaction, index int) (*types.Receipt, error)
Exec_Approve approve config apply
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 ¶
GetDriverName return a drivername
func (*Manage) Query_GetConfigID ¶ added in v1.66.1
Query_GetConfigID get config item id
func (*Manage) Query_GetConfigItem ¶
Query_GetConfigItem get config item
func (*Manage) Query_ListConfigID ¶ added in v1.66.1
Query_ListConfigID get config item id
Click to show internal directories.
Click to hide internal directories.