Documentation
¶
Index ¶
- Constants
- type CacheResponse
- type HTTPAdminJWTToken
- type HTTPAdminLogin
- type HTTPAdminPowerAction
- type HTTPAdminSession
- type HTTPAdminSettings
- type HTTPAdminTokenData
- type HTTPCache
- type HTTPCacheID
- type HTTPError
- type MasterQuery
- type MastersByPing
- type PingInfoQueryByPing
- type RouteLogger
- type Router
- type ServerListData
- type Service
Constants ¶
View Source
const (
DayDuration = time.Hour * 24
)
View Source
const HTTPStatusEnhanceYourCalm = 420
View Source
const (
ShutdownTimer = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheResponse ¶
type HTTPAdminJWTToken ¶
func (*HTTPAdminJWTToken) IsValid ¶
func (h *HTTPAdminJWTToken) IsValid() bool
type HTTPAdminLogin ¶
type HTTPAdminPowerAction ¶ added in v1.1.0
type HTTPAdminSession ¶
func (*HTTPAdminSession) IsValid ¶
func (h *HTTPAdminSession) IsValid() bool
type HTTPAdminSettings ¶
type HTTPAdminTokenData ¶
type HTTPAdminTokenData struct { Access *HTTPAdminJWTToken Refresh *HTTPAdminJWTToken }
type HTTPCache ¶
type HTTPCache map[HTTPCacheID]interface{}
type HTTPCacheID ¶
type HTTPCacheID int
type MasterQuery ¶
type MasterQuery struct { *query.MasterQuery ServerCount int }
type MastersByPing ¶
type MastersByPing []*MasterQuery
func (MastersByPing) Len ¶
func (m MastersByPing) Len() int
func (MastersByPing) Less ¶
func (m MastersByPing) Less(i, j int) bool
func (MastersByPing) Swap ¶
func (m MastersByPing) Swap(i, j int)
type PingInfoQueryByPing ¶
type PingInfoQueryByPing []*query.PingInfoQuery
func (PingInfoQueryByPing) Len ¶
func (p PingInfoQueryByPing) Len() int
func (PingInfoQueryByPing) Less ¶
func (p PingInfoQueryByPing) Less(i, j int) bool
func (PingInfoQueryByPing) Swap ¶
func (p PingInfoQueryByPing) Swap(i, j int)
type RouteLogger ¶
type RouteLogger struct { http.ResponseWriter Status int }
func (*RouteLogger) WriteHeader ¶
func (r *RouteLogger) WriteHeader(status int)
type ServerListData ¶
type ServerListData struct { RequestTime time.Time Masters MastersByPing Games PingInfoQueryByPing Errors []string }
Click to show internal directories.
Click to hide internal directories.