Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrValidation = errors.New("validation error") ErrConfigManager = errors.New("config manager error") )
View Source
var (
ErrNotFoundKey = errors.New("key not found")
)
Functions ¶
func NewEnvLoader ¶
func NewEnvLoader(params *EnvLoaderParams) error
Types ¶
type EnvLoaderParams ¶
type EnvSchema ¶
type EnvSchema struct { APP_ENV string `validate:"required"` APP_PORT string `validate:"required"` MONGO_DB string `validate:"required"` MONGO_URL string `validate:"required"` MONGO_HOST string `validate:"required"` MONGO_PORT string `validate:"required"` MONGO_USER string `validate:"required"` MONGO_PASS string `validate:"required"` MAIL_NAME string `validate:"required"` MAIL_SENDER string `validate:"required"` RESEND_BASE_URL string `validate:"required,url"` RESEND_API_KEY string `validate:"required"` SERP_BASE_URL string `validate:"required,url"` SERP_API_KEY string `validate:"required"` }
Click to show internal directories.
Click to hide internal directories.