Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromEnv ¶ added in v0.1.1
func LoadConfigFromEnv()
Configurations are loaded from the environment variables using viper. callin this function will reLoad the config. (useful for testing) WARN: this will reload all the config.
Types ¶
type Config ¶ added in v0.1.1
type Config struct {
// Server
SERVER_MODE string
// Session
SESSION_COOKIE_NAME string
JWT_SESSION_COOKIE_NAME string
// JWT
JWT_EDCA_PRIVATE_KEY_PATH string
JWT_EDCA_PUBLIC_KEY_PATH string
JWT_EDCA_PUBLIC_KEY string
JWT_EDCA_PRIVATE_KEY string
JWT_EXPIRATION_DURATION time.Duration
JWT_SUBJECT string
JWT_ISSUER string
// Storage
SQLITE_FILE_PATH string
}
Click to show internal directories.
Click to hide internal directories.