config

package
v0.0.0-...-3854a10 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 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 App

type App struct {
	DB     *sql.DB
	Config *ServerConfig
}

func New

func New() *App

type Env

type Env struct {
	ApiAddr  string `env:"API_Addr"`
	ApiPort  string `env:"API_PORT"`
	DBDSN    string `env:"DB_DSN"`
	DBDriver string `env:"DB_Dirver"`
	Secret   string `env:"SECRET"`
}

type ServerConfig

type ServerConfig struct {
	Addr   string
	Port   string
	Secret string
}

Jump to

Keyboard shortcuts

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