Documentation
¶
Index ¶
- func Log() *zap.Logger
- func Setup(ctx context.Context, url string, apiKey string, conf *Config) error
- type Accounts
- type Admin
- type Appearance
- type Config
- type Email
- type EmailContent
- type ErrClient
- type ErrRequired
- type ExternalReference
- type File
- type Legal
- type MajorLeagueCyber
- type Pages
- type Security
- type Settings
- type Social
- type Theme
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Accounts ¶
type Accounts struct { DomainWhitelist *string `yaml:"domain_whitelist"` VerifyEmails bool `yaml:"verify_emails"` TeamCreation *bool `yaml:"team_creation"` TeamSize *int `yaml:"team_size"` NumTeams *int `yaml:"num_teams"` NumUsers *int `yaml:"num_users"` TeamDisbanding *string `yaml:"team_disbanding"` IncorrectSubmissionsPerMinute *int `yaml:"incorrect_submissions_per_minutes"` NameChanges *bool `yaml:"name_changes"` }
type Appearance ¶
type Config ¶
type Config struct { Appearance Appearance `yaml:"appearance"` Theme Theme `yaml:"theme"` Accounts Accounts `yaml:"accounts"` Pages Pages `yaml:"pages"` // Don't handle brackets here, should not be part of those settings but CRUD objects // CustomFields are not handled as they are not predictable and would be hard to handle + bad practice (API changes on the fly) MajorLeagueCyber MajorLeagueCyber `yaml:"major_league_cyber"` Settings Settings `yaml:"settings"` Security Security `yaml:"security"` Email Email `yaml:"email"` Time Time `yaml:"time"` Social Social `yaml:"social"` Legal Legal `yaml:"legal"` Mode string `yaml:"mode"` Admin Admin `yaml:"admin"` }
type Email ¶
type Email struct { Registration EmailContent `yaml:"registration"` Confirmation EmailContent `yaml:"confirmation"` NewAccount EmailContent `yaml:"new_account"` PasswordReset EmailContent `yaml:"password_reset"` PasswordResetConfirmation EmailContent `yaml:"password_reset_confirmation"` From *string `yaml:"from"` Server *string `yaml:"server"` Port *string `yaml:"port"` Username *string `yaml:"username"` Password *string `yaml:"password"` TLS_SSL *bool `yaml:"tls_ssl"` STARTTLS *bool `yaml:"starttls"` }
type EmailContent ¶
type ErrRequired ¶
type ErrRequired struct {
Attribute string
}
func (ErrRequired) Error ¶
func (err ErrRequired) Error() string
type ExternalReference ¶
type File ¶
func (*File) UnmarshalYAML ¶
type Legal ¶
type Legal struct { TOS ExternalReference `yaml:"tos"` PrivacyPolicy ExternalReference `yaml:"privacy_policy"` }
type MajorLeagueCyber ¶
Click to show internal directories.
Click to hide internal directories.