aconfig

package
v0.0.0-...-b285d58 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAgentConfig = "agent_config"
View Source
const DefaultConfigVersion = 0

Variables

This section is empty.

Functions

func GetConfigByID

func GetConfigByID(agentID string) ([]AgentConfigMsg, error)

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.(火山引擎专用代码)

Jump to

Keyboard shortcuts

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