Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConnectionString ¶
func GetConnectionString() string
GetConnectionString returns a database connection string
Types ¶
type Config ¶
type Config struct { Public string `json:"public"` Domain string `json:"domain"` Port int `json:"port"` SessionSecret string `json:"session_secret"` SignupEnabled bool `json:"signup_enabled"` //always set to false in release mode (config.json) Database DatabaseConfig Oauth OauthConfig }
Config contains application configuration for active gin mode
type DatabaseConfig ¶
DatabaseConfig contains database connection info
type OauthConfig ¶
type OauthConfig struct { GoogleClientID string `json:"google_client_id"` GoogleSecret string `json:"google_secret"` }
OauthConfig contains oauth client ids and secrets
Click to show internal directories.
Click to hide internal directories.