config

package
v0.0.0-...-b8a1a0e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chrony

type Chrony struct {
	Host    string `default:"chrony" yaml:"host"`
	Port    uint32 `default:"123" yaml:"port"`
	Timeout uint32 `default:"1" yaml:"timeout"`
}

type Config

type Config struct {
	ListenPort                     string   `default:"20014" yaml:"listen-port"`
	LogLevel                       string   `default:"info"`
	TsdbIP                         string   `yaml:"tsdb-ip"`
	Chrony                         Chrony   `yaml:"chrony"`
	SelfUpdateUrl                  string   `default:"grpc" yaml:"self-update-url"`
	RemoteApiTimeout               uint16   `default:"30" yaml:"remote-api-timeout"`
	TridentTypeForUnkonwVtap       uint16   `default:"0" yaml:"trident-type-for-unkonw-vtap"`
	PlatformVips                   []string `yaml:"platform-vips"`
	NodeType                       string   `default:"master" yaml:"node-type"`
	RegionDomainPrefix             string   `yaml:"region-domain-prefix"`
	ClearKubernetesTime            int      `default:"600" yaml:"clear-kubernetes-time"`
	NodeIP                         string
	VTapCacheRefreshInterval       int  `default:"300" yaml:"vtapcache-refresh-interval"`
	MetaDataRefreshInterval        int  `default:"60" yaml:"metadata-refresh-interval"`
	NodeRefreshInterval            int  `default:"60" yaml:"node-refresh-interval"`
	GPIDRefreshInterval            int  `default:"9" yaml:"gpid-refresh-interval"`
	VTapAutoRegister               bool `default:"true" yaml:"vtap-auto-register"`
	DomainAutoRegister             bool `default:"true" yaml:"domain-auto-register"`
	DefaultTapMode                 int  `yaml:"default-tap-mode"`
	BillingMethod                  string
	GrpcPort                       int
	IngesterPort                   int
	PodClusterInternalIPToIngester int
	GrpcMaxMessageLength           int
}

func (*Config) Convert

func (c *Config) Convert()

func (*Config) GetGrpcMaxMessageLength

func (c *Config) GetGrpcMaxMessageLength() int

func (*Config) GetGrpcPort

func (c *Config) GetGrpcPort() int

func (*Config) GetIngesterPort

func (c *Config) GetIngesterPort() int

func (*Config) SetBillingMethod

func (c *Config) SetBillingMethod(billingMethod string)

func (*Config) SetGrpcMaxMessageLength

func (c *Config) SetGrpcMaxMessageLength(maxLen int)

func (*Config) SetGrpcPort

func (c *Config) SetGrpcPort(port int)

func (*Config) SetIngesterPort

func (c *Config) SetIngesterPort(port int)

func (*Config) SetLogLevel

func (c *Config) SetLogLevel(logLevel string)

func (*Config) SetPodClusterInternalIPToIngester

func (c *Config) SetPodClusterInternalIPToIngester(value int)

Jump to

Keyboard shortcuts

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