Documentation ¶
Index ¶
- func AnalyzeByTTL(ip string, ttl uint8)
- func AnalyzeByUserAgent(ip, ua, host string) string
- func DelDeviceIncr(ip string, rdb *v9.Client)
- func DeleteRealtime(ip string)
- func Discover(ip string)
- func GetDeviceIncr(ip string, rdb *v9.Client) (all, mobile, pc int)
- func GetDevicesByIP(ip string) ([]types.DeviceRecord, error)
- func Handle(device types.DeviceRecord)
- func HandleProxy(record *types.ProxyRecord)
- func IsMobile(device types.DeviceRecord) bool
- func NewRealtime(ip string)
- func NewRecord(ip, username string, devices []types.DeviceRecord) *types.ProxyRecord
- func StartUserAgentConsumer()
- type Device
- type DeviceInterface
- type InfoJson
- type Tables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnalyzeByTTL ¶
func AnalyzeByUserAgent ¶
func DeleteRealtime ¶
func DeleteRealtime(ip string)
func GetDeviceIncr ¶
GetDeviceIncr 获取设备数量
func GetDevicesByIP ¶
func GetDevicesByIP(ip string) ([]types.DeviceRecord, error)
GetDevicesByIP 获取某个 IP 下的所有设备信息
func HandleProxy ¶
func HandleProxy(record *types.ProxyRecord)
func NewRealtime ¶
func NewRealtime(ip string)
func NewRecord ¶
func NewRecord(ip, username string, devices []types.DeviceRecord) *types.ProxyRecord
func StartUserAgentConsumer ¶
func StartUserAgentConsumer()
Types ¶
type Device ¶
type Device struct { IP string Record types.DeviceRecord // contains filtered or unexported fields }
type DeviceInterface ¶
type DeviceInterface interface {
// contains filtered or unexported methods
}
Click to show internal directories.
Click to hide internal directories.