Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GOLANG_IPQS_READER_VERSION = byte(1)
Functions ¶
This section is empty.
Types ¶
type AbuseVelocity ¶
type AbuseVelocity struct {
Raw int
}
func (*AbuseVelocity) ToString ¶
func (av *AbuseVelocity) ToString() string
type BinaryOption ¶
type BinaryOption struct {
Data Bit
}
func (*BinaryOption) Has ¶
func (bm *BinaryOption) Has(flag Bit) bool
type Bit ¶
type Bit uint8
Binary Option Bit One
const ( IsMobile Bit = 1 << iota HasOpenPorts IsHostingProvider ActiveVPN ActiveTOR PublicAccessPoint ReservedOne ReservedTwo )
Binary Option Bit Two
const ( ReservedThree Bit = 1 << iota ReservedFour ReservedFive ConnectionTypeOne ConnectionTypeTwo ConnectionTypeThree AbuseVelocityOne AbuseVelocityTwo )
Bimary Option Bit Three (Bit One In Files Without BinaryData)
type Column ¶
type Column struct { Name string Type *RecordType RawValue string }
type ConnectionType ¶
type ConnectionType struct {
Raw int
}
func (*ConnectionType) ToString ¶
func (conn *ConnectionType) ToString() string
type FileReader ¶
type FileReader struct { Handler *os.File TotalBytes uint64 RecordBytes uint64 TreeStart int64 TreeEnd int64 IPv6 bool Valid bool BinaryData bool Columns map[int]*Column BlacklistFile bool }
func Open ¶
func Open(filename string) (*FileReader, error)
func (*FileReader) Fetch ¶
func (file *FileReader) Fetch(ip string) (*IPQSRecord, error)
type FraudScore ¶
type IPQSRecord ¶
type IPQSRecord struct { IsProxy bool IsVPN bool IsTOR bool IsCrawler bool IsBot bool RecentAbuse bool IsBlacklisted bool IsPrivate bool IsMobile bool HasOpenPorts bool IsHostingProvider bool ActiveVPN bool ActiveTOR bool PublicAccessPoint bool ConnectionType *ConnectionType AbuseVelocity *AbuseVelocity Country string City string Region string ISP string Organization string ASN int Timezone string Latitude float32 Longitude float32 FraudScore *FraudScore Columns []*Column }
type RecordType ¶
type RecordType struct {
Data Bit
}
func (*RecordType) Has ¶
func (bm *RecordType) Has(flag Bit) bool
func (*RecordType) Set ¶
func (bm *RecordType) Set(flag Bit)
func (*RecordType) ToString ¶
func (bm *RecordType) ToString() string
Click to show internal directories.
Click to hide internal directories.