Documentation ¶
Index ¶
- Variables
- func AcceptBan(sSteamID64 string)
- func AddRecord(oBanRecord EntBanRecord)
- func ApplyBanToPlayer(sSteamID64 string, iAccess int, sBanReason string, i64BannedAt int64, ...)
- func BanExcessiveSmurfs(arAccounts []string)
- func BanIfSmurfBanned(arAccounts []string)
- func BanManual(oBanReq EntManualBanReq)
- func BanRagequitter(oBanReq EntAutoBanReq)
- func DeleteBan(i64CreatedAt int64)
- func RestoreBans() bool
- func SearchBan(sSteamID64 string)
- func UnbanManual(sSteamID64 string)
- func WatchChannels()
- func WatchUnbans()
- func Watchers()
- type EntAutoBanReq
- type EntBanRecord
- type EntManualBanReq
Constants ¶
This section is empty.
Variables ¶
View Source
var ArrayBanRecords []EntBanRecord
View Source
var ChanAcceptBan = make(chan string) //locks Players
View Source
var ChanAutoBanSmurfs = make(chan []string) //locks Players
View Source
var ChanBanManual = make(chan EntManualBanReq) //locks Players
View Source
var ChanBanRQ = make(chan EntAutoBanReq) //locks Players
View Source
var ChanDeleteBan = make(chan int64) //locks Players
View Source
var ChanLock = make(chan bool)
View Source
var ChanSearchBan = make(chan string) //locks Players
View Source
var ChanUnbanManual = make(chan string) //locks Players
View Source
var ChanUnlock = make(chan bool)
Functions ¶
func AddRecord ¶
func AddRecord(oBanRecord EntBanRecord)
func ApplyBanToPlayer ¶
func BanExcessiveSmurfs ¶
func BanExcessiveSmurfs(arAccounts []string)
func BanIfSmurfBanned ¶
func BanIfSmurfBanned(arAccounts []string)
func BanManual ¶
func BanManual(oBanReq EntManualBanReq)
func BanRagequitter ¶
func BanRagequitter(oBanReq EntAutoBanReq)
func RestoreBans ¶
func RestoreBans() bool
func UnbanManual ¶
func UnbanManual(sSteamID64 string)
func WatchChannels ¶
func WatchChannels()
func WatchUnbans ¶
func WatchUnbans()
Types ¶
type EntAutoBanReq ¶
type EntBanRecord ¶
type EntBanRecord struct { NicknameBase64 string SteamID64 string Access int BannedBySteamID64 string CreatedAt int64 //unix timestamp in milliseconds //must keep it unique (which means 1 new ban record per 1ms at most) AcceptedAt int64 //unix timestamp in milliseconds BanLength int64 //unix time in milliseconds BanReasonBase64 string }
Click to show internal directories.
Click to hide internal directories.