Documentation
¶
Index ¶
- Constants
- type AntiCheat
- func (a *AntiCheat) InfoAntiCheat2(ctx *bm.Context, uid, aid, mid, itemID, itemType, action, actionID string) error
- func (a *AntiCheat) ServiceAntiCheat(p map[string]string) error
- func (a *AntiCheat) ServiceAntiCheatBus(p map[string]string, bus []interface{}) error
- func (a *AntiCheat) ServiceAntiCheatBusv(ctx context.Context, p map[string]string, bus []interface{}) error
- func (a *AntiCheat) ServiceAntiCheatv(ctx context.Context, p map[string]string) error
Constants ¶
View Source
const ( ClientWeb = "web" ClientIphone = "iphone" ClientIpad = "ipad" ClientAndroid = "android" // AntiCheat ItemType ItemTypeAv = "av" ItemTypeBangumi = "bangumi" ItemTypeLive = "live" ItemTypeTopic = "topic" ItemTypeRank = "rank" ItemTypeActivity = "activity" ItemTypeTag = "tag" ItemTypeAD = "ad" ItemTypeLV = "lv" // AntiCheat Action ActionClick = "click" ActionPlay = "play" ActionFav = "fav" ActionCoin = "coin" ActionDM = "dm" ActionToView = "toview" ActionSpace = "space" Actionfollow = "follow" ActionHeartbeat = "heartbeat" ActionAnswer = "answer" )
anti-cheat const.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AntiCheat ¶
type AntiCheat struct {
// contains filtered or unexported fields
}
AntiCheat send anti-cheating info to berserker.
func (*AntiCheat) InfoAntiCheat2 ¶
func (a *AntiCheat) InfoAntiCheat2(ctx *bm.Context, uid, aid, mid, itemID, itemType, action, actionID string) error
InfoAntiCheat2 for new http framework(bm).
func (*AntiCheat) ServiceAntiCheat ¶
ServiceAntiCheat common anti-cheat.
func (*AntiCheat) ServiceAntiCheatBus ¶
ServiceAntiCheatBus for answer anti-cheat.
Click to show internal directories.
Click to hide internal directories.