config

package
v0.0.0-...-8fe99ee Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 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 App

type App struct {
	Env        string `mapstructure:"ENV"`
	GinMode    string `mapstructure:"GIN_MODE" default:"release"`
	Port       string `mapstructure:"PORT"`
	TmdbApiKey string `mapstructure:"TMDB_API_KEY"`
}

type Config

type Config struct {
	App      App
	Database Database
}

func LoadConfig

func LoadConfig() *Config

type Database

type Database struct {
	Hostname string `mapstructure:"MYSQL_HOSTNAME"`
	Port     string `mapstructure:"MYSQL_PORT"`
	Username string `mapstructure:"MYSQL_USERNAME"`
	Password string `mapstructure:"MYSQL_PASSWORD"`
	Database string `mapstructure:"MYSQL_DATABASE"`
}

Jump to

Keyboard shortcuts

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