config

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(conf any, sources ...Src) error

Types

type Common

type Common struct {
	Log      *log.Config      `yaml:"log,omitempty"`
	Trace    *trace.Config    `yaml:"trace,omitempty"`
	Metrics  *metrics.Config  `yaml:"metrics,omitempty"`
	Redis    *Redis           `yaml:"redis,omitempty"`
	Features *features.Config `yaml:"features,omitempty"`
}

func (*Common) Validate

func (c *Common) Validate() error

type Redis

type Redis struct {
	Address  string `yaml:"address"`
	Password string `yaml:"password"`
	MetaDB   int    `yaml:"metaDB"`
	QueueDB  int    `yaml:"queueDB"`
	LockDB   int    `yaml:"lockDB"`
	ConfigDB int    `yaml:"configDB"`
}

type Src

type Src interface {
	// contains filtered or unexported methods
}

func Path

func Path(path string) Src

func Reader

func Reader(reader io.Reader, name string) Src

Jump to

Keyboard shortcuts

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