config

package
v0.0.0-...-15a86da Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 GetDatabaseUser

func GetDatabaseUser() string

-- database --

func GetGoogleClientId

func GetGoogleClientId() string

func GetGoogleClientSecret

func GetGoogleClientSecret() string

func GetImageSizeLimit

func GetImageSizeLimit() int64

func GetJWTKey

func GetJWTKey() *jwtauth.JWTAuth

func GetLoggerDisabledServerEndpoints

func GetLoggerDisabledServerEndpoints() []string

func GetLoggerEncoding

func GetLoggerEncoding() string

func GetLoggerLevel

func GetLoggerLevel() string

func GetMapBoxToken

func GetMapBoxToken() string

func GetMode

func GetMode() string

app wide

func GetPort

func GetPort() *int

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 GetTokenExpiryDuration() (time.Duration, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL