Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppConfig = AppConfiguration{
Name: "pg_featureserv",
Version: setVersion,
EnvDBURL: "DATABASE_URL",
EnvPrefix: "PGFS",
}
Functions ¶
func DumpConfig ¶
func DumpConfig()
func InitConfig ¶
InitConfig initializes the configuration from the config file
Types ¶
type AppConfiguration ¶
type AppConfiguration struct { // AppName name of the software Name string // AppVersion version number of the software Version string EnvDBURL string EnvPrefix string }
AppConfiguration is the set of global application configuration constants.
type Config ¶
type Config struct { Server Server Paging Paging Metadata Metadata Database Database Website Website }
Config for system
var Configuration Config
Configuration for system
func (*Config) IsTLSEnabled ¶
IsHTTPSEnabled tests whether HTTPS is enabled
type Database ¶
type Database struct { DbConnection string DbPoolMaxConnLifeTime string DbPoolMaxConns int TableIncludes []string TableExcludes []string FunctionIncludes []string }
Database config
type Server ¶
type Server struct { HttpHost string HttpPort int HttpsPort int TlsServerCertificateFile string TlsServerPrivateKeyFile string UrlBase string BasePath string CORSOrigins string Debug bool AssetsPath string ReadTimeoutSec int WriteTimeoutSec int TransformFunctions []string }
Server config
Click to show internal directories.
Click to hide internal directories.