Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultAgentConfig = "agent_config"
View Source
const DefaultConfigVersion = 0
Variables ¶
This section is empty.
Functions ¶
func GetConfigByID ¶
func GetDefaultConfig ¶
func GetDefaultConfig() []AgentConfigMsg
func UpdateDefaultConfig ¶
func UpdateDefaultConfig(conf DefaultConfig) error
UpdateDefaultConfig update default agent config
Types ¶
type DefaultConfig ¶
type DefaultConfig struct { Type string `json:"type" bson:"type" binding:"required"` Version int `json:"version" bson:"version"` Config []AgentConfigMsg `json:"config" bson:"config" binding:"required"` CreateTime int64 `json:"create_time" bson:"create_time"` UpdateTime int64 `json:"update_time" bson:"update_time"` }
DefaultConfig : old version default config ( no version )
type DefaultVersionConfig ¶
type DefaultVersionConfig struct { Type string `json:"type" bson:"type" binding:"required"` Version string `json:"version" bson:"version"` Config []AgentConfigMsg `json:"config" bson:"config" binding:"required"` CreateTime int64 `json:"create_time" bson:"create_time"` UpdateTime int64 `json:"update_time" bson:"update_time"` }
DefaultVersionConfig : new version default config with special version.(火山引擎专用代码)
Click to show internal directories.
Click to hide internal directories.