config

package
v0.0.0-...-241bfea Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 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 Config

type Config struct {
	GRPC       GRPC       `yaml:"grpc" env-required:"true"`
	PostgreSQL PostgreSQL `yaml:"postgresql" env-required:"true"`
	Migrations Migrations `yaml:"migrations" env-required:"true"`
}

func MustLoadConfig

func MustLoadConfig(configPath string) *Config

type GRPC

type GRPC struct {
	Port uint16 `yaml:"port" env-default:"6969"`
}

type Migrations

type Migrations struct {
	Path string `yaml:"path" env-required:"true"`
}

type PostgreSQL

type PostgreSQL struct {
	Host     string `yaml:"host" env-required:"true"`
	Port     uint16 `yaml:"port" env-required:"true"`
	User     string `yaml:"user" env-required:"true"`
	Password string `yaml:"password" env-required:"true"`
	DBName   string `yaml:"dbname" env-required:"true"`
	SSLMode  string `yaml:"sslmode" env-required:"true"`
}

Jump to

Keyboard shortcuts

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