anticheat

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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"
	ActionShare     = "share"
	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 New

func New(c *infoc.Config) (a *AntiCheat)

New new AntiCheat logger.

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

func (a *AntiCheat) ServiceAntiCheat(p map[string]string) error

ServiceAntiCheat common anti-cheat.

func (*AntiCheat) ServiceAntiCheatBus

func (a *AntiCheat) ServiceAntiCheatBus(p map[string]string, bus []interface{}) error

ServiceAntiCheatBus for answer anti-cheat.

func (*AntiCheat) ServiceAntiCheatBusv

func (a *AntiCheat) ServiceAntiCheatBusv(ctx context.Context, p map[string]string, bus []interface{}) error

ServiceAntiCheatBusv support mirror request

func (*AntiCheat) ServiceAntiCheatv

func (a *AntiCheat) ServiceAntiCheatv(ctx context.Context, p map[string]string) error

ServiceAntiCheatv support mirror request

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL