config

package
v0.0.0-...-1ac4089 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause-Clear Imports: 11 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 {
	DB       db.Config                                `yaml:"db"`
	OPA      opa.Config                               `yaml:"opa"`
	Server   server.Config                            `yaml:"server"`
	Logger   logger.Config                            `yaml:"logger"`
	Services map[string]serviceregistry.ServiceConfig `` /* 168-byte string literal not displayed */
}

func LoadConfig

func LoadConfig(key string, file string) (*Config, error)

Load config with viper.

type Error

type Error string
const (
	ErrLoadingConfig Error = "error loading config"
)

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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