Documentation
¶
Index ¶
Constants ¶
View Source
const ( EnvDev = "dev" EnvProd = "prod" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthConfig ¶
type AuthConfig struct { Username string Password string TokenSecret string TokenExpiration time.Duration }
func GetAuthConfig ¶
func GetAuthConfig() AuthConfig
type CORSConfig ¶
type ServerConfig ¶
type ServerConfig struct { Env string Address string Auth AuthConfig CORS CORSConfig Swagger SwaggerConfig }
func GetServerConfig ¶
func GetServerConfig() ServerConfig
type SwaggerConfig ¶
func GetSwaggerConfig ¶
func GetSwaggerConfig() SwaggerConfig
Click to show internal directories.
Click to hide internal directories.