conf

package
v0.0.0-...-3629385 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 Config

type Config struct {
	Etcd  *etcd.Config      `json:"etcd" toml:"etcd" mapstructure:"etcd"`
	Log   *log.Config       `json:"log" toml:"log" mapstructure:"log"`
	MySQL *mysql.Config     `json:"mysql" toml:"mysql" mapstructure:"mysql"`
	GRPC  *network.Config   `json:"grpc" toml:"grpc" mapstructure:"grpc"`
	Otel  *opentrace.Config `json:"otel" toml:"otel" mapstructure:"otel"`
	Crons map[int]Crons     `json:"crons" toml:"crons" mapstructure:"crons"`
}

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

type Crons

type Crons struct {
	Crontab string `json:"crontab" toml:"crontab" mapstructure:"crontab"`
	Plan    string `json:"plan" toml:"plan" mapstructure:"plan"`
}

Jump to

Keyboard shortcuts

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