Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserTraffic ¶
type UserTraffic struct { Status int `json:"status"` RequestSize int64 `json:"request_size"` ResponseSize int64 `json:"response_size"` Timing int64 `json:"timing"` Timestamp time.Time `json:"timestamp"` RequestID string `json:"request_id"` Result string `json:"result"` CSID string `json:"csid"` CCID string `jsond:"ccid"` CID string `json:"cid"` Proto string `json:"proto"` Method string `json:"method"` URL string `json:"url"` SID string `json:"sid"` AID string `json:"aid"` DID string `json:"did"` Cancel string `json:"cancel"` CCancel string `json:"ccancel"` ProxyType string `json:"proxy_type"` FID string `json:"fid"` ContentType string `json:"content_type"` Address string `json:"address"` Country string `json:"country"` Referrer string `json:"referrer"` CW string `json:"cw"` SSLVersion string `json:"ssl_version"` SSLCipher string `json:"ssl_cipher"` ENC string `json:"enc"` UserAgent string `json:"ua"` Unparsed []string `json:"unparsed"` }
UserTraffic is a single decoded user traffic log line
func ParseUserTrafficRecord ¶
func ParseUserTrafficRecord(raw string) (*UserTraffic, error)
ParseUserTrafficRecord parses a raw user traffic log line into a UserTraffic struct A slice of any unknown kv pairs or unbalanced fields will be appended to the UserTraffic structs Unparsed field.
Click to show internal directories.
Click to hide internal directories.