Documentation ¶
Overview ¶
package configs uses for configuring different parts of our application
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port string `yaml:"port"` DB struct { Host string `yaml:"host"` Port string `yaml:"port"` Username string `yaml:"username"` Password string `yaml:"password"` DBName string `yaml:"dbname"` SSLMode string `yaml:"sslmode"` } `yaml:"db"` API struct { URL string `yaml:"url"` } `yaml:"api"` }
func LoadConfig ¶
LoadConfig loads configurations from received path and env variables
Click to show internal directories.
Click to hide internal directories.