config

package
v0.0.0-...-b5678d6 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthClient

type AuthClient struct {
	URL string `env-required:"true" yaml:"url" env:"AUTH_CLIENT_URL"`
}

type Config

type Config struct {
	App        configs.App   `yaml:"app"`
	HTTP       configs.HTTP  `yaml:"http"`
	Logger     logger.Config `yaml:"logger"`
	PG         PG            `yaml:"postgres"`
	AuthClient AuthClient    `yaml:"auth_client"`
}

func NewConfig

func NewConfig() (*Config, error)

type PG

type PG struct {
	PoolMax int    `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"`
	DsnURL  string `env-required:"true" yaml:"dsn_url" env:"PG_DSN_URL"`
}

Jump to

Keyboard shortcuts

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