Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheStatus ¶
type CacheStatus int32
const ( CacheStatus_CACHESTATUS_UNKNOWN CacheStatus = 0 CacheStatus_MISS CacheStatus = 1 CacheStatus_EXPIRED CacheStatus = 2 CacheStatus_HIT CacheStatus = 3 )
type HTTP ¶
type HTTP struct { Protocol HTTP_Protocol `json:"protocol"` Status uint32 `json:"status"` HostStatus uint32 `json:"hostStatus"` UpStatus uint32 `json:"upStatus"` Method HTTP_Method `json:"method"` ContentType string `json:"contentType"` UserAgent string `json:"userAgent"` Referer string `json:"referer"` RequestURI string `json:"requestURI"` XXX_unrecognized []byte `json:"-"` }
type HTTP_Method ¶
type HTTP_Method int32
const ( HTTP_METHOD_UNKNOWN HTTP_Method = 0 HTTP_GET HTTP_Method = 1 HTTP_POST HTTP_Method = 2 HTTP_DELETE HTTP_Method = 3 HTTP_PUT HTTP_Method = 4 HTTP_HEAD HTTP_Method = 5 HTTP_PURGE HTTP_Method = 6 HTTP_OPTIONS HTTP_Method = 7 HTTP_PROPFIND HTTP_Method = 8 HTTP_MKCOL HTTP_Method = 9 HTTP_PATCH HTTP_Method = 10 )
type HTTP_Protocol ¶
type HTTP_Protocol int32
const ( HTTP_HTTP_PROTOCOL_UNKNOWN HTTP_Protocol = 0 HTTP_HTTP10 HTTP_Protocol = 1 HTTP_HTTP11 HTTP_Protocol = 2 )
type Log ¶
type Log struct { Timestamp int64 `json:"timestamp"` ZoneId uint32 `json:"zoneId"` ZonePlan ZonePlan `json:"zonePlan"` Http HTTP `json:"http"` Origin Origin `json:"origin"` Country Country `json:"country"` CacheStatus CacheStatus `json:"cacheStatus"` ServerIp IP `json:"serverIp"` ServerName string `json:"serverName"` RemoteIp IP `json:"remoteIp"` BytesDlv uint64 `json:"bytesDlv"` RayId string `json:"rayId"` XXX_unrecognized []byte `json:"-"` }
type Origin ¶
type Origin struct { Ip IP `json:"ip"` Port uint32 `json:"port"` Hostname string `json:"hostname"` Protocol Origin_Protocol `json:"protocol"` }
type Origin_Protocol ¶
type Origin_Protocol int32
const ( Origin_ORIGIN_PROTOCOL_UNKNOWN Origin_Protocol = 0 Origin_HTTP Origin_Protocol = 1 Origin_HTTPS Origin_Protocol = 2 )
Click to show internal directories.
Click to hide internal directories.