config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 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 Config

type Config struct {
	configs.App   `yaml:"app"`
	configs.HTTP  `yaml:"http"`
	configs.Log   `yaml:"logger"`
	PG            `yaml:"postgres"`
	RabbitMQ      `yaml:"rabbit_mq"`
	ProductClient `yaml:"product_client"`
}

func NewConfig

func NewConfig() (*Config, error)

type PG

type PG struct {
	PoolMax int    `env-required:"true" yaml:"pool_max" env:"PG_POOL_MAX"`
	URL     string `env-required:"true" yaml:"url" env:"PG_URL"`
}

type ProductClient

type ProductClient struct {
	URL string `env-required:"true" yaml:"url" env:"PRODUCT_CLIENT_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