Debian Codegraph @

cdn/types.go

raw symbols SCIP
1 package cdn
2
3 import (
4 "time"
5
6 "github.com/denverdino/aliyungo/common"
7 )
8
9 const (
10 Web = "web"
11 Download = "download"
12 video = "video"
13 LiveStream = "liveStream"
14 Ipaddr = "ipaddr"
15 Domain = "domain"
16 OSS = "oss"
17 Domestic = "domestic"
18 Overseas = "overseas"
19 Global = "global"
20 ContentType = "Content-Type"
21 CacheControl = "Cache-Control"
22 ContentDisposition = "Content-Disposition"
23 ContentLanguage = "Content-Language"
24 Expires = "Expires"
25 AccessControlAllowOrigin = "Access-Control-Allow-Origin"
26 AccessControlAllowMethods = "Access-Control-Allow-Methods"
27 AccessControlMaxAge = "Access-Control-Max-Age"
28 )
29
30 var CdnTypes = []string{Web, Download, video, LiveStream}
31 var SourceTypes = []string{Ipaddr, Domain, OSS}
32 var Scopes = []string{Domestic, Overseas, Global}
33 var HeaderKeys = []string{ContentType, CacheControl, ContentDisposition, ContentLanguage, Expires, AccessControlAllowMethods, AccessControlAllowOrigin, AccessControlMaxAge}
34
35 type CdnCommonResponse struct {
36 common.Response
37 }
38
39 type Domains struct {
40 DomainName string
41 Cname string
42 CdnType string
43 DomainStatus string
44 GmtCreated string
45 GmtModified string
46 Description string
47 }
48
49 type MonitorDataItem struct {
50 TimeStamp string
51 QueryPerSecond string
52 BytesHitRate string
53 BytesPerSecond string
54 RequestHitRate string
55 AverageObjectSize string
56 }
57
58 type TaskItem struct {
59 TaskId string
60 ObjectPath string
61 Status string
62 CreationTime time.Time
63 }
64
65 type LogDetail struct {
66 LogName string
67 LogPath string
68 LogSize int32
69 StartTime string
70 EndTime string
71 }