123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288 |
- package cdn
- type Request struct {
- Day string `json:"day" form:"day"`
- ServerID int64 `json:"serverId" form:"serverId"`
- Size int64 `json:"size" form:"size"`
- UserID int64 `json:"userId" form:"userId"`
- HasError *bool `json:"hasError" form:"hasError"`
- Ip string `json:"ip" form:"ip"`
- Domain string `json:"domain" form:"domain"`
- HourFrom string `json:"hourFrom" form:"hourFrom"`
- HourTo string `json:"hourTo" form:"hourTo"`
- Reverse bool `json:"reverse" form:"reverse" default:"false"`
- RequestId string `json:"requestId" form:"requestId"`
- Keyword string `json:"keyword" form:"keyword"`
- }
- type Data struct {
- HTTPAccessLogs []HTTPAccessLog `json:"httpAccessLogs"`
- RequestID string `json:"requestId"`
- }
- type HTTPAccessLog struct {
- BodyBytesSent int64 `json:"bodyBytesSent"`
- BytesSent int64 `json:"bytesSent"`
- ContentType string `json:"contentType"`
- Header Header `json:"header"`
- Host string `json:"host"`
- Hostname string `json:"hostname"`
- Msec float64 `json:"msec"`
- Node Node `json:"node"`
- NodeID int64 `json:"nodeId"`
- OriginAddress string `json:"originAddress"`
- OriginHeaderResponseTime float64 `json:"originHeaderResponseTime"`
- OriginID int64 `json:"originId"`
- OriginStatus int64 `json:"originStatus"`
- Proto string `json:"proto"`
- RawRemoteAddr string `json:"rawRemoteAddr"`
- Referer string `json:"referer"`
- RemoteAddr string `json:"remoteAddr"`
- RemotePort int64 `json:"remotePort"`
- Request string `json:"request"`
- RequestID string `json:"requestId"`
- RequestLength int64 `json:"requestLength"`
- RequestMethod string `json:"requestMethod"`
- RequestPath string `json:"requestPath"`
- RequestTime float64 `json:"requestTime"`
- RequestURI string `json:"requestURI"`
- Scheme string `json:"scheme"`
- SentHeader SentHeader `json:"sentHeader"`
- ServerID int64 `json:"serverId"`
- ServerName string `json:"serverName"`
- ServerPort int64 `json:"serverPort"`
- ServerProtocol string `json:"serverProtocol"`
- Status int64 `json:"status"`
- TimeISO8601 string `json:"timeISO8601"`
- TimeLocal string `json:"timeLocal"`
- Timestamp int64 `json:"timestamp"`
- UserAgent string `json:"userAgent"`
- }
- type Header struct {
- Accept Accept `json:"Accept"`
- AcceptCharset *AcceptCharset `json:"Accept-Charset,omitempty"`
- AcceptEncoding AcceptEncoding `json:"Accept-Encoding"`
- AcceptLanguage *AcceptLanguage `json:"Accept-Language,omitempty"`
- AdminAccess *AdminAccess `json:"Admin-Access,omitempty"`
- CacheControl *HeaderCacheControl `json:"Cache-Control,omitempty"`
- Connection *Connection `json:"Connection,omitempty"`
- ContentLength *HeaderContentLength `json:"Content-Length,omitempty"`
- ContentType *HeaderContentType `json:"Content-Type,omitempty"`
- Cookie *Cookie `json:"Cookie,omitempty"`
- Origin *Origin `json:"Origin,omitempty"`
- Priority *Priority `json:"Priority,omitempty"`
- Referer *Referer `json:"Referer,omitempty"`
- SECCHUA *SECCHUA `json:"Sec-CH-UA,omitempty"`
- SECCHUAMobile *SECCHUAMobile `json:"Sec-CH-UA-Mobile,omitempty"`
- SECChUaMobile *SECChUaMobile `json:"Sec-Ch-Ua-Mobile,omitempty"`
- SECCHUAPlatform *SECCHUAPlatform `json:"Sec-CH-UA-Platform,omitempty"`
- SECFetchDest *SECFetchDest `json:"Sec-Fetch-Dest,omitempty"`
- SECFetchMode *SECFetchMode `json:"Sec-Fetch-Mode,omitempty"`
- SECFetchSite *SECFetchSite `json:"Sec-Fetch-Site,omitempty"`
- SECFetchStorageAccess *SECFetchStorageAccess `json:"Sec-Fetch-Storage-Access,omitempty"`
- SECFetchUser *SECFetchUser `json:"Sec-Fetch-User,omitempty"`
- Token *Token `json:"Token,omitempty"`
- UpgradeInsecureRequests *UpgradeInsecureRequests `json:"Upgrade-Insecure-Requests,omitempty"`
- UserAgent UserAgent `json:"User-Agent"`
- XForwardedBy *XForwardedBy `json:"X-Forwarded-By,omitempty"`
- XForwardedFor *XForwardedFor `json:"X-Forwarded-For,omitempty"`
- XForwardedHost *XForwardedHost `json:"X-Forwarded-Host,omitempty"`
- XForwardedProto *XForwardedProto `json:"X-Forwarded-Proto,omitempty"`
- XRealIP *XRealIP `json:"X-Real-IP,omitempty"`
- }
- type Accept struct {
- Values []string `json:"values"`
- }
- type AcceptCharset struct {
- Values []string `json:"values"`
- }
- type AcceptEncoding struct {
- Values []string `json:"values"`
- }
- type AcceptLanguage struct {
- Values []string `json:"values"`
- }
- type AdminAccess struct {
- Values []string `json:"values"`
- }
- type HeaderCacheControl struct {
- Values []string `json:"values"`
- }
- type Connection struct {
- Values []string `json:"values"`
- }
- type HeaderContentLength struct {
- Values []string `json:"values"`
- }
- type HeaderContentType struct {
- Values []string `json:"values"`
- }
- type Cookie struct {
- Values []string `json:"values"`
- }
- type Origin struct {
- Values []string `json:"values"`
- }
- type Priority struct {
- Values []string `json:"values"`
- }
- type Referer struct {
- Values []string `json:"values"`
- }
- type SECCHUA struct {
- Values []string `json:"values"`
- }
- type SECCHUAMobile struct {
- Values []string `json:"values"`
- }
- type SECCHUAPlatform struct {
- Values []string `json:"values"`
- }
- type SECChUaMobile struct {
- Values []string `json:"values"`
- }
- type SECFetchDest struct {
- Values []string `json:"values"`
- }
- type SECFetchMode struct {
- Values []string `json:"values"`
- }
- type SECFetchSite struct {
- Values []string `json:"values"`
- }
- type SECFetchStorageAccess struct {
- Values []string `json:"values"`
- }
- type SECFetchUser struct {
- Values []string `json:"values"`
- }
- type Token struct {
- Values []string `json:"values"`
- }
- type UpgradeInsecureRequests struct {
- Values []string `json:"values"`
- }
- type UserAgent struct {
- Values []string `json:"values"`
- }
- type XForwardedBy struct {
- Values []string `json:"values"`
- }
- type XForwardedFor struct {
- Values []string `json:"values"`
- }
- type XForwardedHost struct {
- Values []string `json:"values"`
- }
- type XForwardedProto struct {
- Values []string `json:"values"`
- }
- type XRealIP struct {
- Values []string `json:"values"`
- }
- type Node struct {
- ID int64 `json:"id"`
- Name string `json:"name"`
- NodeCluster NodeCluster `json:"nodeCluster"`
- }
- type NodeCluster struct {
- ID int64 `json:"id"`
- Name string `json:"name"`
- }
- type SentHeader struct {
- AcceptRanges *AcceptRanges `json:"Accept-Ranges,omitempty"`
- CacheControl *SentHeaderCacheControl `json:"Cache-Control,omitempty"`
- ContentEncoding *ContentEncoding `json:"Content-Encoding,omitempty"`
- ContentLength *SentHeaderContentLength `json:"Content-Length,omitempty"`
- ContentType SentHeaderContentType `json:"Content-Type"`
- Date *Date `json:"Date,omitempty"`
- Etag *Etag `json:"Etag,omitempty"`
- Expires *Expires `json:"Expires,omitempty"`
- LastModified *LastModified `json:"Last-Modified,omitempty"`
- Location Location `json:"Location"`
- Server *Server `json:"Server,omitempty"`
- Vary *Vary `json:"Vary,omitempty"`
- }
- type AcceptRanges struct {
- Values []string `json:"values"`
- }
- type SentHeaderCacheControl struct {
- Values []string `json:"values"`
- }
- type ContentEncoding struct {
- Values []string `json:"values"`
- }
- type SentHeaderContentLength struct {
- Values []string `json:"values"`
- }
- type SentHeaderContentType struct {
- Values []string `json:"values"`
- }
- type Date struct {
- Values []string `json:"values"`
- }
- type Etag struct {
- Values []string `json:"values"`
- }
- type Expires struct {
- Values []string `json:"values"`
- }
- type LastModified struct {
- Values []string `json:"values"`
- }
- type Location struct {
- Values []string `json:"values"`
- }
- type Server struct {
- Values []string `json:"values"`
- }
- type Vary struct {
- Values []string `json:"values"`
- }
|