config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 4 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 {
	Postgres `envPrefix:"POSTGRES_"`
	GRPC     `envPrefix:"GRPC_"`
	Gateway  `envPrefix:"GATEWAY_"`
}

func New

func New() (*Config, error)

type GRPC

type GRPC struct {
	Host string `env:"HOST"`
	Port string `env:"PORT"`
}

type Gateway

type Gateway struct {
	Host string `env:"HOST"`
	Port string `env:"PORT"`
}

type Postgres

type Postgres struct {
	URL string `env:"URL"`
}

Jump to

Keyboard shortcuts

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