config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	App struct {
		Port      int    `toml:"port"`
		JWTSecret string `toml:"jwtsecret"`
	} `toml:"app"`
	Database struct {
		Driver   string `toml:"driver"`
		DBName   string `toml:"dbname"`
		Address  string `toml:"address"`
		Port     int    `toml:"port"`
		Username string `toml:"username"`
		Password string `toml:"password"`
	} `toml:"database"`
}

func GetConfig

func GetConfig() *AppConfig

Jump to

Keyboard shortcuts

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