Documentation
¶
Index ¶
- func ActiveInstCtrlCompare(a, b interface{}) int
- func AddActiveInstCtrl(activeInst *proto.ProtoActiveInstControlS, engine *mysql.DBEngineInfoS) error
- func InitActiveInstCtrl(record *db.TblActiveInstControlS, aicm *ActiveInstCtrlMgr) *activeInstCtrl
- func QueryActiveInstsByState(performState db.ActivePerformState, engine *mysql.DBEngineInfoS) ([]db.TblActiveInstControlS, error)
- func SetActiveInstPerformState(recordID int64, performState db.ActivePerformState, ...) error
- func StopAllWaitingActiveInstCtrls(engine *mysql.DBEngineInfoS)
- type ActiveInstCtrlMgr
- type ActiveInstCtrlMgrCmd
- type ActiveInstCtrlMgrCmdInfo
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{} }
Click to show internal directories.
Click to hide internal directories.