Documentation ¶
Index ¶
- Constants
- Variables
- func CheckBotForImpression(impression *object.Impression) (int, string, int, int, int)
- func CheckBotForTrace(t *object.Trace) (int, string, int, int, int)
- func GetDetectResult(ss *object.Session, traceId int) *object.Session
- func GetRuleName(rule int) string
- func SyncGuesses(ss *object.Session)
- type RuleJson
- type TraceFragment
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 GetRuleName ¶
func SyncGuesses ¶
Types ¶
type RuleJson ¶
func GetRuleListJson ¶
func GetRuleListJson() []*RuleJson
type TraceFragment ¶
Source Files ¶
- check_bot.go
- init.go
- rule.go
- rule_acceleration.go
- rule_acute_angle.go
- rule_high_point_density.go
- rule_near_straight_line.go
- rule_negative_cursor.go
- rule_over_distance.go
- rule_overspeed.go
- rule_repeated_point.go
- rule_rootless_click.go
- rule_same_speed.go
- rule_single_point.go
- rule_straight_line.go
- rule_time_conflict.go
- sync.go
- util.go
Click to show internal directories.
Click to hide internal directories.