Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ApplicationSectionKey is the key for the application configuration section. ApplicationSectionKey = "application" // ApplicationDebugKey is the key for the program debug parameter, in application section. ApplicationDebugKey = "application.debug" // ApplicationPublicURLKey is the key for the taalapi public URL parameter, in application section. ApplicationPublicURLKey = "application.public_url" // CookiesSectionKey is the key for the cookies configuration section. CookiesSectionKey = "cookies" // CookiesEncryptionSecretKey is the key for the encryption secret parameter, in cookies section. CookiesEncryptionSecretKey = "cookies.encryption_secret" // CookiesSigningSecretKey is the key for the signing secret parameter, in cookies section. CookiesSigningSecretKey = "cookies.signing_secret" // DiscordOAuth2SectionKey is the key for the Discord OAuth 2 client configuration section. DiscordOAuth2SectionKey = "discord_oauth2" // DiscordOAuth2ClientIDKey is the key for the Discord OAuth 2 client ID. DiscordOAuth2ClientIDKey = "discord_oauth2.client_id" // DiscordOAuth2ClientSecretKey is the key for the Discord OAuth 2 client secret. DiscordOAuth2ClientSecretKey = "discord_oauth2.client_secret" // HTTPServerSectionKey is the key for the HTTP server configuration section. HTTPServerSectionKey = "http_server" // HTTPServerAllowedOriginsKey is the key for the allowed origins, used by CORS and CSRF middlewares, in HTTP server section. HTTPServerAllowedOriginsKey = "http_server.allowed_origins" // HTTPServerListenAddressKey is the key for the HTTP server listen address paramater, in HTTP server section. HTTPServerListenAddressKey = "http_server.listen_address" // HTTPServerTLSEnableKey is the key for the parameter that enables/disables TLS, in HTTP server section. HTTPServerTLSEnableKey = "http_server.tls.enable" // HTTPServerTLSCACertPathKey is the key for the TLS CA certificate path parameter, in HTTP server section. HTTPServerTLSCACertPathKey = "http_server.tls.ca_certificate" // HTTPServerTLSCertPathKey is the key for the TLS certificate path parameter, in HTTP server section. HTTPServerTLSCertPathKey = "http_server.tls.certificate" // HTTPServerTLSKeyPathKey is the key for the TLS private key path parameter, in HTTP server section. HTTPServerTLSKeyPathKey = "http_server.tls.key" // LogSectionKey is the key for the log configuration section. LogSectionKey = "log" // LogLevelKey is the key for the log level paramater, in log section. LogLevelKey = "log.level" // MongoDBSectionKey is the key for the MongoDB configuration section. MongoDBSectionKey = "mongodb" // MongoDBAddressKey is the key for the MongoDB server address paramater, in MongoDB section. MongoDBAddressKey = "mongodb.address" // MongoDBDatabaseKey is the key for the MongoDB database name parameter, in MongoDB section. MongoDBDatabaseKey = "mongodb.database" // MongoDBUsernameKey is the key for the MongoDB database username parameter, in MongoDB section. MongoDBUsernameKey = "mongodb.username" // MongoDBPasswordKey is the key for the MongoDB database password parameter, in MongoDB section. MongoDBPasswordKey = "mongodb.password" // WebappAssetsDirectoryKey is the key for the path to web application static assets directory. WebappAssetsDirectoryKey = "webapp.assets_directory" // WebappTemplatesDirectoryKey is the key for the path to web application HTML templates directory. WebappTemplatesDirectoryKey = "webapp.templates_directory" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.