Documentation ¶
Index ¶
- Constants
- Variables
- func GetAuthRedirectURL() string
- func GetDatabaseHost() string
- func GetDatabaseName() string
- func GetDatabasePassword() string
- func GetDatabasePort() string
- func GetDatabaseURL() string
- func GetDatabaseUser() string
- func GetGoogleClientId() string
- func GetGoogleClientSecret() string
- func GetImageSizeLimit() int64
- func GetJWTKey() *jwtauth.JWTAuth
- func GetLoggerDisabledServerEndpoints() []string
- func GetLoggerEncoding() string
- func GetLoggerLevel() string
- func GetMapBoxToken() string
- func GetMode() string
- func GetPort() *int
- func GetProfilerPath() string
- func GetServerCertFile() string
- func GetServerCorsAllowedHeaders() []string
- func GetServerCorsAllowedMethods() []string
- func GetServerCorsAllowedOrigins() []string
- func GetServerCorsMaxAge() int
- func GetServerHost() string
- func GetServerKeyFile() string
- func GetServerPort() int
- func GetTokenExpiryDuration() (time.Duration, error)
- func GetTokenIssuer() string
- func GetZipCodeToken() string
- func IsLoggerColored() bool
- func IsLoggerLoggingServerRequests() bool
- func IsLoggerLoggingServerRequestsBody() bool
- func IsLoggerStacktraceDisabled() bool
- func IsProfilerEnabled() bool
- func IsServerCorsCredentialsAllowed() bool
- func IsServerTLSEnabled() bool
- func IsServerTLSUseDevCert() bool
Constants ¶
View Source
const ( MODE_DEV = "dev" MODE_PROD = "prod" )
app wide
View Source
const ( LOGGER_ENCODING_CONSOLE = "console" LOGGER_ENCODING_JSON = "json" LOGGER_LEVEL_DEBUG = "debug" LOGGER_LEVEL_INFO = "info" )
logger
Variables ¶
View Source
var Stop = &stop{ c: make(chan bool), }
Stop is a global stop instance
Functions ¶
func GetAuthRedirectURL ¶
func GetAuthRedirectURL() string
func GetDatabaseHost ¶
func GetDatabaseHost() string
func GetDatabaseName ¶
func GetDatabaseName() string
func GetDatabasePassword ¶
func GetDatabasePassword() string
func GetDatabasePort ¶
func GetDatabasePort() string
func GetDatabaseURL ¶
func GetDatabaseURL() string
func GetGoogleClientId ¶
func GetGoogleClientId() string
func GetGoogleClientSecret ¶
func GetGoogleClientSecret() string
func GetImageSizeLimit ¶
func GetImageSizeLimit() int64
func GetLoggerDisabledServerEndpoints ¶
func GetLoggerDisabledServerEndpoints() []string
func GetLoggerEncoding ¶
func GetLoggerEncoding() string
func GetLoggerLevel ¶
func GetLoggerLevel() string
func GetMapBoxToken ¶
func GetMapBoxToken() string
func GetProfilerPath ¶
func GetProfilerPath() string
func GetServerCertFile ¶
func GetServerCertFile() string
func GetServerCorsAllowedHeaders ¶
func GetServerCorsAllowedHeaders() []string
func GetServerCorsAllowedMethods ¶
func GetServerCorsAllowedMethods() []string
func GetServerCorsAllowedOrigins ¶
func GetServerCorsAllowedOrigins() []string
func GetServerCorsMaxAge ¶
func GetServerCorsMaxAge() int
func GetServerHost ¶
func GetServerHost() string
func GetServerKeyFile ¶
func GetServerKeyFile() string
func GetServerPort ¶
func GetServerPort() int
func GetTokenExpiryDuration ¶
func GetTokenIssuer ¶
func GetTokenIssuer() string
func GetZipCodeToken ¶
func GetZipCodeToken() string
func IsLoggerColored ¶
func IsLoggerColored() bool
func IsLoggerLoggingServerRequests ¶
func IsLoggerLoggingServerRequests() bool
func IsLoggerLoggingServerRequestsBody ¶
func IsLoggerLoggingServerRequestsBody() bool
func IsLoggerStacktraceDisabled ¶
func IsLoggerStacktraceDisabled() bool
func IsProfilerEnabled ¶
func IsProfilerEnabled() bool
func IsServerCorsCredentialsAllowed ¶
func IsServerCorsCredentialsAllowed() bool
func IsServerTLSEnabled ¶
func IsServerTLSEnabled() bool
func IsServerTLSUseDevCert ¶
func IsServerTLSUseDevCert() bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.