config

package
v0.0.0-...-5d299dd Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 4 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 {
	MongoDB struct {
		URI string `yaml:"uri" env:"URI" env-required:"true"`
	} `yaml:"mongodb" env-prefix:"MONGODB_"`
	GRPC struct {
		Addr string `yaml:"address" env:"ADDR" env-default:":80"`
	} `yaml:"grpc" env-prefix:"GRPC_"`
	Validation struct {
		Rules validate.TypeRules `yaml:"rules" env:"RULES"`
	} `yaml:"validation" env-prefix:"VALIDATION_"`
}

func GetConfig

func GetConfig(path string, log zerolog.Logger) Config

Jump to

Keyboard shortcuts

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