activemgr

package
v0.0.0-...-b988991 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActiveInstCtrlCompare

func ActiveInstCtrlCompare(a, b interface{}) int

func AddActiveInstCtrl

func AddActiveInstCtrl(activeInst *proto.ProtoActiveInstControlS, engine *mysql.DBEngineInfoS) error

插入活动实例

func InitActiveInstCtrl

func InitActiveInstCtrl(record *db.TblActiveInstControlS, aicm *ActiveInstCtrlMgr) *activeInstCtrl

func QueryActiveInstsByState

func QueryActiveInstsByState(performState db.ActivePerformState, engine *mysql.DBEngineInfoS) ([]db.TblActiveInstControlS, error)

按状态查询活动配置

func SetActiveInstPerformState

func SetActiveInstPerformState(recordID int64, performState db.ActivePerformState, engine *mysql.DBEngineInfoS) error

设置活动状态

func StopAllWaitingActiveInstCtrls

func StopAllWaitingActiveInstCtrls(engine *mysql.DBEngineInfoS)

Types

type ActiveInstCtrlMgr

type ActiveInstCtrlMgr struct {
	// contains filtered or unexported fields
}
var (
	GActiveInstCtrlMgr *ActiveInstCtrlMgr
)

func CreateActiveInstCtrlMgr

func CreateActiveInstCtrlMgr() *ActiveInstCtrlMgr

func (*ActiveInstCtrlMgr) Clean

func (aicm *ActiveInstCtrlMgr) Clean()

func (*ActiveInstCtrlMgr) Reload

func (aicm *ActiveInstCtrlMgr) Reload()

type ActiveInstCtrlMgrCmd

type ActiveInstCtrlMgrCmd int
const (
	E_CMD_START ActiveInstCtrlMgrCmd = iota
	E_CMD_RELOAD
	E_CMD_EXIT
	E_CMD_CLEAN // 清除所有运行和待运行的活动控制
)

type ActiveInstCtrlMgrCmdInfo

type ActiveInstCtrlMgrCmdInfo struct {
	Cmd  ActiveInstCtrlMgrCmd
	Data interface{}
}

Jump to

Keyboard shortcuts

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