Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheStatus ¶
type CacheStatus int32
CacheStatus of goser
const ( // CACHESTATUSUNKNOWN unknown cache status CACHESTATUSUNKNOWN CacheStatus = 0 // CACHESTATUSMISS miss cache status CACHESTATUSMISS CacheStatus = 1 // CACHESTATUSEXPIRED exipred cache status CACHESTATUSEXPIRED CacheStatus = 2 // CACHESTATUSHIT hit cache status CACHESTATUSHIT CacheStatus = 3 )
type HTTP ¶
type HTTP struct { Protocol HTTPProtocol `json:"protocol"` Status uint32 `json:"status"` HostStatus uint32 `json:"hostStatus"` UpStatus uint32 `json:"upStatus"` Method HTTPMethod `json:"method"` ContentType string `json:"contentType"` UserAgent string `json:"userAgent"` Referer string `json:"referer"` RequestURI string `json:"requestURI"` Unrecognized []byte `json:"-"` }
HTTP struct type
type HTTPMethod ¶
type HTTPMethod int32
HTTPMethod of goser
const ( // HTTPMETHODUNKNOWN unknown http method HTTPMETHODUNKNOWN HTTPMethod = 0 // HTTPMETHODGET get http method HTTPMETHODGET HTTPMethod = 1 // HTTPMETHODPOST post http method HTTPMETHODPOST HTTPMethod = 2 // HTTPMETHODDELETE delete http method HTTPMETHODDELETE HTTPMethod = 3 // HTTPMETHODPUT put http method HTTPMETHODPUT HTTPMethod = 4 // HTTPMETHODHEAD head http method HTTPMETHODHEAD HTTPMethod = 5 // HTTPMETHODPURGE purge http method HTTPMETHODPURGE HTTPMethod = 6 // HTTPMETHODOPTIONS options http method HTTPMETHODOPTIONS HTTPMethod = 7 // HTTPMETHODPROPFIND propfind http method HTTPMETHODPROPFIND HTTPMethod = 8 // HTTPMETHODMKCOL mkcol http method HTTPMETHODMKCOL HTTPMethod = 9 // HTTPMETHODPATCH patch http method HTTPMETHODPATCH HTTPMethod = 10 )
type HTTPProtocol ¶
type HTTPProtocol int32
HTTPProtocol of goser
const ( // HTTPPROTOCOLUNKNOWN http protocol unknown HTTPPROTOCOLUNKNOWN HTTPProtocol = 0 // HTTPPROTOCOL10 http protocol 10 HTTPPROTOCOL10 HTTPProtocol = 1 // HTTPPROTOCOL11 http protocol 11 HTTPPROTOCOL11 HTTPProtocol = 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"` Unrecognized []byte `json:"-"` }
Log struct
type Origin ¶
type Origin struct { IP IP `json:"ip"` Port uint32 `json:"port"` Hostname string `json:"hostname"` Protocol OriginProtocol `json:"protocol"` }
Origin struct
type OriginProtocol ¶
type OriginProtocol int32
OriginProtocol type
const ( // ORIGINPROTOCOLUNKNOWN origin protocol unknown ORIGINPROTOCOLUNKNOWN OriginProtocol = 0 // ORIGINPROTOCOLHTTP origin protocol http ORIGINPROTOCOLHTTP OriginProtocol = 1 // ORIGINPROTOCOLHTTPS origin protocol https ORIGINPROTOCOLHTTPS OriginProtocol = 2 )
Click to show internal directories.
Click to hide internal directories.