Documentation
¶
Index ¶
- func AddTabbar(actionWrapper actions.ActionWrapper)
- func CheckAgentIsWaiting(agentId string) bool
- func FindAgentApp(agent *agents.AgentConfig, appId string) *agents.AppConfig
- func FindAgentRuntime(agentConfig *agents.AgentConfig) *agents.AgentConfig
- func FindNoticeLinks(notice *notices.Notice) (links []maps.Map)
- func FormatTask(task *agents.TaskConfig, agentId string) maps.Map
- func InitAppData(actionWrapper actions.ActionWrapper, agentId string, appId string, ...) *agents.AppConfig
- func PostAgentEvent(agentId string, event *Event)
- func RemoveAgentQueue(agentId string, c chan *Event)
- func WaitAgentQueue(agentId string, c chan *Event)
- type Event
- type ProcessLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddTabbar ¶
func AddTabbar(actionWrapper actions.ActionWrapper)
func FindAgentApp ¶
func FindAgentApp(agent *agents.AgentConfig, appId string) *agents.AppConfig
func FindAgentRuntime ¶
func FindAgentRuntime(agentConfig *agents.AgentConfig) *agents.AgentConfig
func InitAppData ¶
func InitAppData(actionWrapper actions.ActionWrapper, agentId string, appId string, tabbar string) *agents.AppConfig
App菜单
Types ¶
type ProcessLog ¶
type ProcessLog struct {
Id primitive.ObjectID `var:"id" bson:"_id" json:"id"` // 数据库存储的ID
AgentId string `bson:"agentId" json:"agentId"`
TaskId string `bson:"taskId" json:"taskId"`
ProcessId string `bson:"processId" json:"processId"`
ProcessPid int `bson:"processPid" json:"processPid"`
EventType string `bson:"eventType" json:"eventType"` // start, log, stop
Data string `bson:"data" json:"data"`
Timestamp int64 `bson:"timestamp" json:"timestamp"` // unix时间戳,单位为秒
TimeFormat struct {
Year string `bson:"year" json:"year"`
Month string `bson:"month" json:"month"`
Day string `bson:"day" json:"day"`
Hour string `bson:"hour" json:"hour"`
Minute string `bson:"minute" json:"minute"`
Second string `bson:"second" json:"second"`
} `bson:"timeFormat" json:"timeFormat"`
}
进程日志
Click to show internal directories.
Click to hide internal directories.