config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply() error

Types

type App

type App struct {
	AppName  string
	AppPort  string
	AppDebug bool
}

type Config

type Config struct {
	Databases    Databases
	App          App
	ShutdownTime time.Duration
}
var AppConfig Config

type Databases

type Databases struct {
	Postgres Postgres
	Mysql    Mysql
}

type Mysql

type Mysql struct {
	Host     string
	UserName string
	Database string
	Password string
	Port     string
	Sslmode  string
	Timeout  time.Duration
}

type Postgres

type Postgres struct {
	Host     string
	UserName string
	Password string
	Database string
	Port     string
	Sslmode  string
}

Jump to

Keyboard shortcuts

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