Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationData ¶
type AuthenticationData struct { UserID string `json:"user_id"` AuthenticationSuccess bool `json:"authentication_success"` UserAgent string `json:"user_agent"` IP string `json:"ip"` Country string `json:"country"` Region string `json:"region"` OS string `json:"os"` Browser string `json:"browser"` DeviceType string `json:"device_type"` }
type Risk ¶
type Risk struct { Score float32 Classification RiskClassification }
type RiskClassification ¶
type RiskClassification string
const ( HIGH RiskClassification = "HIGH" MEDIUM RiskClassification = "MEDIUM" LOW RiskClassification = "LOW" )
type RiskProfile ¶
func NewDefaultRisckWeight ¶
func NewDefaultRisckWeight() *RiskProfile
func (*RiskProfile) TotalWeight ¶
func (rp *RiskProfile) TotalWeight() int
type UserProfile ¶
type UserProfile struct { UserID string `json:"user_id"` Countries []UserProfileStatistics `json:"countries"` Regions []UserProfileStatistics `json:"regions"` }
func (*UserProfile) GetCountryPercentage ¶
func (up *UserProfile) GetCountryPercentage(entry string) float32
func (*UserProfile) GetRegionPercentage ¶
func (up *UserProfile) GetRegionPercentage(entry string) float32
type UserProfileStatistics ¶
Click to show internal directories.
Click to hide internal directories.