config

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

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

Go to latest
Published: Jun 14, 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 {
	Port     int      `yaml:"port" envconfig:"PORT"`
	DBconfig DBconfig `yaml:"db_config" envconfig:"DB_CONFIG"`
	Host     string   `yaml:"host" envconfig:"HOST"`
}

func (*Config) REadFromEnv

func (c *Config) REadFromEnv(logger *zap.SugaredLogger)

func (*Config) ReadFromFile

func (c *Config) ReadFromFile(logger *zap.SugaredLogger) error

type DBconfig

type DBconfig struct {
	DBurl string `yaml:"db_url" envconfig:"DB_URL"`
}

Jump to

Keyboard shortcuts

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