Versions in this module Expand all Collapse all v1 v1.1.0 Feb 5, 2022 Changes in this version + const DayDuration + type HTTPAdminPowerAction struct + Action string type Service + func (s *Service) Status() service.LifeCycle v1.0.1 Jan 8, 2022 Changes in this version + const HTTPStatusEnhanceYourCalm + const ShutdownTimer + type CacheResponse struct + Response []byte + Time time.Time + type HTTPAdminJWTToken struct + Expires time.Time + SessionID string + Token string + func (h *HTTPAdminJWTToken) IsValid() bool + type HTTPAdminLogin struct + Expiry time.Time + LoggedIn bool + Password string + Username string + Version string + type HTTPAdminSession struct + LoginTime time.Time + UUID string + Username string + func (h *HTTPAdminSession) IsValid() bool + type HTTPAdminSettings struct + LogList map[service.ID]service.Info + type HTTPAdminTokenData struct + Access *HTTPAdminJWTToken + Refresh *HTTPAdminJWTToken + type HTTPCache map[HTTPCacheID]interface + type HTTPCacheID int + type HTTPError struct + Error string + ErrorCode int + type MasterQuery struct + ServerCount int + type MastersByPing []*MasterQuery + func (m MastersByPing) Len() int + func (m MastersByPing) Less(i, j int) bool + func (m MastersByPing) Swap(i, j int) + type PingInfoQueryByPing []*query.PingInfoQuery + func (p PingInfoQueryByPing) Len() int + func (p PingInfoQueryByPing) Less(i, j int) bool + func (p PingInfoQueryByPing) Swap(i, j int) + type RouteLogger struct + Status int + func (r *RouteLogger) WriteHeader(status int) + type Router struct + func NewHTTPRouter(log *log.Log, buildinfo *service.BuildInfo, config *config.Service) (out *Router) + func (rt *Router) AddRoute(path string, method string, fn http.Handler) + func (rt *Router) InitTemplate() (err error) + func (rt *Router) Mux() (out *http.ServeMux) + func (rt *Router) SetFileSystem(fs fs.FS, err error) + type ServerListData struct + Errors []string + Games PingInfoQueryByPing + Masters MastersByPing + RequestTime time.Time + type Service struct + Config *config.Service + Logs struct{ ... } + MasterService *master.Service + PollService *polling.PollService + STUNService service.Interface + Services *map[service.ID]service.Interface + func (s *Service) Init(services *map[service.ID]service.Interface) (err error) + func (s *Service) Maintenance() + func (s *Service) Rehash() + func (s *Service) Run() + func (s *Service) Shutdown()