Documentation ¶
Index ¶
- Variables
- func AuthRatelimits()
- func GetAuthCount(sClientIP string) int
- func GinInit()
- func HttpAcceptDuo(c *gin.Context)
- func HttpCancelDuo(c *gin.Context)
- func HttpConfirmMaps(c *gin.Context)
- func HttpGetMaps(c *gin.Context)
- func HttpOfferDuo(c *gin.Context)
- func HttpRefreshMaps(c *gin.Context)
- func HttpRefreshServers(c *gin.Context)
- func HttpReqAcceptBan(c *gin.Context)
- func HttpReqAcceptRules(c *gin.Context)
- func HttpReqAddBan(c *gin.Context)
- func HttpReqAuth(c *gin.Context)
- func HttpReqBlockNewGames(c *gin.Context)
- func HttpReqDeleteBan(c *gin.Context)
- func HttpReqGSAntiCheatLogs(c *gin.Context)
- func HttpReqGSChatLogs(c *gin.Context)
- func HttpReqGSCheckBan(c *gin.Context)
- func HttpReqGSFullReadyUp(c *gin.Context)
- func HttpReqGSGameResults(c *gin.Context)
- func HttpReqGSGetGame(c *gin.Context)
- func HttpReqGSPartialReadyUp(c *gin.Context)
- func HttpReqGetAntiCheatLogs(c *gin.Context)
- func HttpReqGetBanRecords(c *gin.Context)
- func HttpReqGetGame(c *gin.Context)
- func HttpReqGetGameServers(c *gin.Context)
- func HttpReqGetGlobalChat(c *gin.Context)
- func HttpReqGetKnownAccs(c *gin.Context)
- func HttpReqGetOnlinePlayers(c *gin.Context)
- func HttpReqGetPlayers(c *gin.Context)
- func HttpReqGetQueue(c *gin.Context)
- func HttpReqGetStreams(c *gin.Context)
- func HttpReqHome(c *gin.Context)
- func HttpReqJoinQueue(c *gin.Context)
- func HttpReqLeaveQueue(c *gin.Context)
- func HttpReqLogout(c *gin.Context)
- func HttpReqMyIP(c *gin.Context)
- func HttpReqOpenID(c *gin.Context)
- func HttpReqOverrideVPN(c *gin.Context)
- func HttpReqPingsReceiver(c *gin.Context)
- func HttpReqReadyUp(c *gin.Context)
- func HttpReqRemoveStream(c *gin.Context)
- func HttpReqSMURFListUpdated(c *gin.Context)
- func HttpReqSendGlobalChat(c *gin.Context)
- func HttpReqSetAdmin(c *gin.Context)
- func HttpReqSetMmr(c *gin.Context)
- func HttpReqShutdown(c *gin.Context)
- func HttpReqStatus(c *gin.Context)
- func HttpReqTicketCreate(c *gin.Context)
- func HttpReqTicketList(c *gin.Context)
- func HttpReqTicketMessages(c *gin.Context)
- func HttpReqTicketReply(c *gin.Context)
- func HttpReqUnban(c *gin.Context)
- func HttpReqUpdateNameAvatar(c *gin.Context)
- func HttpReqValidateProf(c *gin.Context)
- func HttpReqWebSocket(c *gin.Context)
- func HttpRevokeMapsConfirm(c *gin.Context)
- func HttpSteamID32to64(c *gin.Context)
- func HttpTwitchAuth(c *gin.Context)
- func HttpTwitchOpenIDCallback(c *gin.Context)
- func IncreaseAuthCount(sClientIP string)
- func PerformShutDown()
- func SetupOpenID()
- func TwitchAuthRatelimits()
- func TwitchGetAuthCount(sClientIP string) int
- func TwitchIncreaseAuthCount(sClientIP string)
- type BanRecordResponse
- type ChatMsgResp
- type GameResponse
- type NoOpDiscoveryCache
- type PlayerResponse
- type PlayerResponseMe
Constants ¶
This section is empty.
Variables ¶
View Source
var ChShutdown chan bool = make(chan bool)
View Source
var MuAuth sync.RWMutex
View Source
var MuAuthTwitch sync.RWMutex
Functions ¶
func GetAuthCount ¶
func HttpAcceptDuo ¶
func HttpCancelDuo ¶
func HttpConfirmMaps ¶
func HttpGetMaps ¶
func HttpOfferDuo ¶
func HttpRefreshMaps ¶
func HttpRefreshServers ¶
func HttpReqAcceptBan ¶
func HttpReqAcceptRules ¶
func HttpReqAddBan ¶
func HttpReqAuth ¶
func HttpReqBlockNewGames ¶
func HttpReqDeleteBan ¶
func HttpReqGSAntiCheatLogs ¶
func HttpReqGSChatLogs ¶
func HttpReqGSCheckBan ¶
func HttpReqGSFullReadyUp ¶
func HttpReqGSGameResults ¶
func HttpReqGSGetGame ¶
func HttpReqGSPartialReadyUp ¶
func HttpReqGetAntiCheatLogs ¶
func HttpReqGetBanRecords ¶
func HttpReqGetGame ¶
func HttpReqGetGameServers ¶
func HttpReqGetGlobalChat ¶
func HttpReqGetKnownAccs ¶
func HttpReqGetOnlinePlayers ¶
func HttpReqGetPlayers ¶
func HttpReqGetQueue ¶
func HttpReqGetStreams ¶
func HttpReqHome ¶
func HttpReqJoinQueue ¶
func HttpReqLeaveQueue ¶
func HttpReqLogout ¶
func HttpReqMyIP ¶
func HttpReqOpenID ¶
func HttpReqOverrideVPN ¶
func HttpReqPingsReceiver ¶
func HttpReqReadyUp ¶
func HttpReqRemoveStream ¶
func HttpReqSMURFListUpdated ¶
func HttpReqSendGlobalChat ¶
func HttpReqSetAdmin ¶
func HttpReqSetMmr ¶
func HttpReqShutdown ¶
func HttpReqStatus ¶
func HttpReqTicketCreate ¶
func HttpReqTicketList ¶
func HttpReqTicketMessages ¶
func HttpReqTicketReply ¶
func HttpReqUnban ¶
func HttpReqUpdateNameAvatar ¶
func HttpReqValidateProf ¶
func HttpReqWebSocket ¶
func HttpRevokeMapsConfirm ¶
func HttpSteamID32to64 ¶
func HttpTwitchAuth ¶
func IncreaseAuthCount ¶
func IncreaseAuthCount(sClientIP string)
func PerformShutDown ¶
func PerformShutDown()
func SetupOpenID ¶
func SetupOpenID()
func TwitchGetAuthCount ¶
func TwitchIncreaseAuthCount ¶
func TwitchIncreaseAuthCount(sClientIP string)
Types ¶
type BanRecordResponse ¶
type BanRecordResponse struct { NicknameBase64 string `json:"base64name"` SteamID64 string `json:"steamid64"` CreatedAt int64 `json:"created_at"` BannedBySteamID64 string `json:"banned_by"` AcceptedAt int64 `json:"accepted_at"` BanLength int64 `json:"ban_length"` BanReasonBase64 string `json:"base64reason"` }
type ChatMsgResp ¶
type GameResponse ¶
type GameResponse struct { ID string `json:"id"` PlayersA []PlayerResponse `json:"players_a"` PlayersB []PlayerResponse `json:"players_b"` GameConfig string `json:"game_config"` CampaignName string `json:"campaign_name"` PingsRequested bool `json:"pings_requested"` ServerIP string `json:"server_ip"` ProxyIP string `json:"proxy_ip"` Status string `json:"status"` MapDownloadLink string `json:"map_download"` }
type NoOpDiscoveryCache ¶
type NoOpDiscoveryCache struct{}
func (*NoOpDiscoveryCache) Get ¶
func (n *NoOpDiscoveryCache) Get(id string) openid.DiscoveredInfo
func (*NoOpDiscoveryCache) Put ¶
func (n *NoOpDiscoveryCache) Put(id string, info openid.DiscoveredInfo)
type PlayerResponse ¶
type PlayerResponse struct { SteamID64 string `json:"steamid64"` NicknameBase64 string `json:"nickname_base64"` AvatarSmall string `json:"avatar_small"` Mmr int `json:"mmr"` Access int `json:"access"` //-2 - completely banned, -1 - chat banned, 0 - regular player, 1 - behaviour moderator, 2 - cheat moderator, 3 - behaviour+cheat moderator, 4 - full admin access IsInGame bool `json:"is_ingame"` IsInQueue bool `json:"is_inqueue"` MmrGrade int `json:"mmr_grade"` CustomMapsState int `json:"custom_maps"` //1 - never confirmed, 2 - update required, 3 - confirmed IsInDuo bool `json:"in_duo"` }
func AppendPlayerResponse ¶
func AppendPlayerResponse(arPlayers []PlayerResponse, pPlayer *players.EntPlayer) []PlayerResponse
type PlayerResponseMe ¶
type PlayerResponseMe struct { SteamID64 string `json:"steamid64"` NicknameBase64 string `json:"nickname_base64"` AvatarSmall string `json:"avatar_small"` AvatarBig string `json:"avatar_big"` Mmr int `json:"mmr"` Access int `json:"access"` //-2 - completely banned, -1 - chat banned, 0 - regular player, 1 - behaviour moderator, 2 - cheat moderator, 3 - behaviour+cheat moderator, 4 - full admin access BanReason string `json:"banreason"` BanAcceptedAt int64 `json:"ban_accepted_at"` BanLength int64 `json:"ban_length"` IsInGame bool `json:"is_ingame"` IsInQueue bool `json:"is_inqueue"` MmrGrade int `json:"mmr_grade"` ProfValidated bool `json:"profile_validated"` //Steam profile validated RulesAccepted bool `json:"rules_accepted"` //Rules accepted DuoOffer string `json:"duo_offer"` CustomMapsState int `json:"custom_maps"` //1 - never confirmed, 2 - update required, 3 - confirmed IsInDuo bool `json:"in_duo"` }
Source Files ¶
- acceptban.go
- acceptduo.go
- acceptrules.go
- addban.go
- api.go
- auth.go
- blocknewgames.go
- cancelduo.go
- confirmmaps.go
- deleteban.go
- getanticheatlogs.go
- getbanrecords.go
- getgame.go
- getgameservers.go
- getglobalchat.go
- getknownaccs.go
- getmaps.go
- getonlineplayers.go
- getplayers.go
- getqueue.go
- getstreams.go
- gs_anticheatlogs.go
- gs_chatlogs.go
- gs_checkban.go
- gs_fullrup.go
- gs_gameresults.go
- gs_getgame.go
- gs_partialrup.go
- joinqueue.go
- leavequeue.go
- logout.go
- offerduo.go
- openidcallback.go
- overridevpn.go
- pingsreceiver.go
- readyup.go
- refreshmaps.go
- refreshservers.go
- removestream.go
- revokemapsconfirm.go
- sendglobalchat.go
- setadmin.go
- setmmr.go
- shutdown.go
- smurf_list_updated.go
- status.go
- steamid32to64.go
- ticketcreate.go
- ticketlist.go
- ticketmessages.go
- ticketreply.go
- twitchauth.go
- twitchcallback.go
- unban.go
- updatenameavatar.go
- validateprofile.go
- ws.go
Click to show internal directories.
Click to hide internal directories.