config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	BaseUrl     string `env:"BASE_URL"`
	BasePort    string `env:"BASE_PORT"`
	BaseWebPort string `env:"WEB_BASE_PORT"`
}

type Config

type Config struct {
	Smtp     Smtp
	Email    Email
	Postgres Postgres
	App      App
	Session  Session
}
var AppConfig Config

func LoadConfig

func LoadConfig() (cfg Config, err error)

type Email

type Email struct {
	Email    string `env:"CONFIG_AUTH_EMAIL"`
	Password string `env:"CONFIG_AUTH_PASSWORD"`
}

type Grpc

type Grpc struct {
	GrpcPort string `env:"GRPC_PORT"`
}

type Postgres

type Postgres struct {
	Host     string `env:"POSTGRES_HOST"`
	Port     string `env:"POSTGRES_PORT"`
	DbName   string `env:"POSTGRES_DBNAME"`
	User     string `env:"POSTGRES_USER"`
	Password string `env:"POSTGRES_PASSWORD"`
	SSLMode  string `env:"POSTGRES_SSLMODE"`
}

type Session

type Session struct {
	AuthSessionId string `env:"AUTH_SESSION"`
}

type Smtp

type Smtp struct {
	Host string `env:"CONFIG_SMTP_HOST"`
	Post string `env:"CONFIG_SMTP_PORT"`
}

Jump to

Keyboard shortcuts

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