detect

package
v0.0.0-...-17edfda Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuleNone = iota
	RuleOverspeed
	RuleSinglePoint
	RuleOverDistance
	RuleAcuteAngle
	//RuleRepeatedPoint
	RuleSameSpeed
	RuleStraightLine
	RuleAccelerationBeforeClick
	//RuleNearStraightLine
	RuleEquallySpacedPoints
	RuleRootlessClick
	RuleHighPointDensity
	//RuleNegativeCursor
	//RuleTimeConflict
	RuleUpperLimit
)
View Source
const EventTypeClick = "click"

https://developer.mozilla.org/en-US/docs/Web/Events

View Source
const ReasonNone = ""

Variables

View Source
var AccelerationLimit = 2
View Source
var AcuteAngleLimit = 3
View Source
var DensityLimit = 30
View Source
var DistLimit = 200.0

var EventLimit = 50

View Source
var EventLimit = 50
View Source
var SameSpeedEventLimit = 50
View Source
var SameSpeedSdLimit = 300
View Source
var SpeedLimit = 1000.0

Functions

func CheckBotForImpression

func CheckBotForImpression(impression *object.Impression) (int, string, int, int, int)

func CheckBotForTrace

func CheckBotForTrace(t *object.Trace) (int, string, int, int, int)

func GetDetectResult

func GetDetectResult(ss *object.Session, traceId int) *object.Session

func GetRuleName

func GetRuleName(rule int) string

func SyncGuesses

func SyncGuesses(ss *object.Session)

Types

type RuleJson

type RuleJson struct {
	RuleId   int    `json:"ruleId"`
	RuleName string `json:"ruleName"`
}

func GetRuleListJson

func GetRuleListJson() []*RuleJson

type TraceFragment

type TraceFragment struct {
	Count int
	Start int
	End   int
}

Jump to

Keyboard shortcuts

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