Documentation ¶
Index ¶
- type Config
- type ConfigDatabase
- type ConfigDiscord
- type ConfigEmail
- type ConfigFacility
- type ConfigFacilityActivity
- type ConfigFacilityActivityInactive
- type ConfigFacilityActivityWarning
- type ConfigFacilityStats
- type ConfigFacilityTraining
- type ConfigFacilityTrainingDiscord
- type ConfigFacilityVisiting
- type ConfigFeatures
- type ConfigMetrics
- type ConfigOAuth
- type ConfigOAuthEndpoints
- type ConfigServer
- type ConfigSession
- type ConfigSessionCookie
- type ConfigStorage
- type ConfigVATUSA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Database ConfigDatabase `json:"database"` Discord ConfigDiscord `json:"discord"` Email ConfigEmail `json:"email"` Facility ConfigFacility `json:"facility"` Features ConfigFeatures `json:"features"` Groups map[string][]string `json:"groups"` Metrics ConfigMetrics `json:"metrics"` OAuth ConfigOAuth `json:"oauth"` Server ConfigServer `json:"server"` Session ConfigSession `json:"session"` Storage ConfigStorage `json:"storage"` VATUSA ConfigVATUSA `json:"vatusa"` }
var Cfg *Config
func ParseConfig ¶
type ConfigDatabase ¶
type ConfigDiscord ¶
type ConfigEmail ¶
type ConfigFacility ¶
type ConfigFacility struct { Activity ConfigFacilityActivity `json:"activity"` Stats ConfigFacilityStats `json:"stats"` Visiting ConfigFacilityVisiting `json:"visiting"` TrainingRequests ConfigFacilityTraining `json:"training_requests"` FrontendURL string `json:"frontend_url"` }
type ConfigFacilityActivity ¶
type ConfigFacilityActivity struct { Inactive ConfigFacilityActivityInactive `json:"inactive"` Warning ConfigFacilityActivityWarning `json:"warning"` }
type ConfigFacilityStats ¶
type ConfigFacilityTraining ¶
type ConfigFacilityTraining struct { Enabled bool `json:"enabled"` Discord ConfigFacilityTrainingDiscord `json:"discord"` Positions []string `json:"positions"` MaxRequestsPerUser int `json:"max_requests_per_user"` SendToDiscord bool `json:"send_to_discord"` }
type ConfigFacilityVisiting ¶
type ConfigFeatures ¶
type ConfigMetrics ¶
type ConfigOAuth ¶
type ConfigOAuth struct { BaseURL string `json:"base_URL"` ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` MyBaseURL string `json:"my_base_URL"` Endpoints ConfigOAuthEndpoints `json:"endpoints"` }
type ConfigOAuthEndpoints ¶
type ConfigServer ¶
type ConfigSession ¶
type ConfigSession struct {
Cookie ConfigSessionCookie `json:"cookie"`
}
type ConfigSessionCookie ¶
type ConfigStorage ¶
type ConfigVATUSA ¶
Click to show internal directories.
Click to hide internal directories.