Documentation
¶
Overview ¶
Package server implements the web server, routes and middleware for the code-and-chill application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIGetUserResponse ¶
type APIListUsersResponse ¶
type APIResetUserProgressResponse ¶
type APIResetUserProgressResponse struct {
OK bool `json:"ok"`
}
type APIUpdateUserRequest ¶
type APIUpdateUserResponse ¶
type Config ¶
type Config struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
TLSCertFile string `yaml:"tlsCertFile"`
TLSKeyFile string `yaml:"tlsKeyFile"`
TLSReloadSchedule string `yaml:"tlsReloadSchedule"`
HTTPSRedirect bool `yaml:"httpsRedirect"`
DataDir string `yaml:"dataDir"`
ShutdownTimeout time.Duration `yaml:"shutdownTimeout"`
APIPort int `yaml:"apiPort"`
}
Click to show internal directories.
Click to hide internal directories.