config

package
v0.0.0-...-d9936ee Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string `env-required:"true" yaml:"username" env:"USERNAME"`
	Password string `env-required:"true" yaml:"password" env:"PASSWORD"`
}

type Config

type Config struct {
	configs.App  `yaml:"app"`
	configs.HTTP `yaml:"http"`
	configs.Log  `yaml:"logger"`
	RabbitMQ     `yaml:"rabbitmq"`
	PG           `yaml:"postgres"`
	Auth         `yaml:"auth"`
}

func NewConfig

func NewConfig() (*Config, error)

type PG

type PG struct {
	PoolMax  int    `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"`
	DbURL    string `env-required:"true" yaml:"db_url" env:"PG_URL"`
	DbRepURL string `env-required:"true" yaml:"db_rep_url" env:"PG_REP_URL"`
}

type RabbitMQ

type RabbitMQ struct {
	URL string `env-required:"true" yaml:"url" env:"RABBITMQ_URL"`
}

Jump to

Keyboard shortcuts

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