config

package
v0.0.0-...-8d187f3 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCloudGlobalConfig

func SetCloudGlobalConfig(c CloudConfig)

Types

type CloudConfig

type CloudConfig struct {
	KubernetesGatherInterval uint32          `default:"30" yaml:"kubernetes_gather_interval"`
	AliyunRegionName         string          `default:"cn-beijing" yaml:"aliyun_region_name"`
	AWSRegionName            string          `default:"cn-north-1" yaml:"aws_region_name"`
	HostnameToIPFile         string          `default:"/etc/hostname_to_ip.csv" yaml:"hostname_to_ip_file"`
	DNSEnable                bool            `default:"false" yaml:"dns_enable"`
	HTTPTimeout              int             `default:"30" yaml:"http_timeout"`
	CustomTagLenMax          int             `default:"256" yaml:"custom_tag_len_max"`
	ProcessNameLenMax        int             `default:"256" yaml:"process_name_len_max"`
	DebugEnabled             bool            `default:"false" yaml:"debug_enabled"`
	QingCloudConfig          QingCloudConfig `yaml:"qingcloud_config"`
}
var CONF *CloudConfig

type QingCloudConfig

type QingCloudConfig struct {
	MaxRetries            uint   `default:"4" yaml:"max_retries"`
	RetryDuration         uint   `default:"60" yaml:"retry_duration"`              // unit: s
	DailyTriggerTime      string `default:"" yaml:"daily_trigger_time"`            // %H:%M 05:00
	DisableSyncLBListener bool   `default:"false" yaml:"disable_sync_lb_listener"` // disable sync for lb listener and target server
}

Jump to

Keyboard shortcuts

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