parser

package
v0.41.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 4 Imported by: 0

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"`
	Other        map[string]string `json:"other"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL