config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: GPL-3.0 Imports: 12 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 Build

type Build struct {
	Version string
	Commit  string
}

type Config

type Config struct {
	Log log.Config `yaml:"log"`

	Metrics metrics.Config `yaml:"metrics"`

	Trace trace.Config `yaml:"trace"`

	Api api.Config `yaml:"api"`

	Rados rados.Config `yaml:"rados"`

	Auth auth.Config `yaml:"auth"`

	App struct {
		CreateAdmin   bool   `yaml:"createAdmin"`
		AdminUsername string `yaml:"adminUsername"`
		AdminPassword string `yaml:"adminPassword"`
		BcryptPwdCost int    `yaml:"bcryptPwdCos"`
	} `yaml:"app"`
}

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