Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectDB ¶
ConnectDB function is used to get or open the DB connection instance for any operations on the database.
func MustLoadEnvs ¶
func MustLoadEnvs()
GetEnvs function is used to get the environment variables. this function used godotenv library to load and use the environment variable stored in .env file there are other libraries like viper or cobra that can be used, but for simplicity we use godotenv
Types ¶
type AKeyless_secrets ¶
type CM_secrets ¶
type Config ¶
type Config struct {
Env string `yaml:"env"`
CM_secrets `yaml:"cm_secret"`
AKeyless_secrets `yaml:"akeyless_secret"`
}
Click to show internal directories.
Click to hide internal directories.