conf

package
v0.0.0-...-38dac57 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	CodeList     []string `json:"code_list" toml:"code_list" mapstructure:"code_list"`
	CrawlMode    string   `json:"crawl_mode" toml:"crawl_mode" mapstructure:"crawl_mode"`
	Source       string   `json:"source" toml:"source" mapstructure:"source"`
	RandomPeriod []int    `json:"random_period" toml:"random_period" mapstructure:"random_period"`
}

type Config

type Config struct {
	MongoDB   *mongodb.Config   `json:"mongodb" toml:"mongodb" mapstructure:"mongodb"`
	Etcd      *etcd.Config      `json:"etcd" toml:"etcd" mapstructure:"etcd"`
	Log       *log.Config       `json:"log" toml:"log" mapstructure:"log"`
	GRPC      *network.Config   `json:"grpc" toml:"grpc" mapstructure:"grpc"`
	Otel      *opentrace.Config `json:"otel" toml:"otel" mapstructure:"otel"`
	Collector *Collector        `json:"collector" toml:"collector" mapstructure:"collector"`
}

func InitializeDefaultConfig

func InitializeDefaultConfig(opts *flagsutil.Flags) *Config

func ReadConfig

func ReadConfig(opts *flagsutil.Flags) (*Config, error)

func (*Config) IsConfigValid

func (c *Config) IsConfigValid() error

func (*Config) String

func (c *Config) String() string

Jump to

Keyboard shortcuts

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