models

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 28, 2018 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CCSpec

type CCSpec struct {

	/* cc防护模式:0正常 1宽松 2紧急 3自定义 (Optional) */
	CcProtectMode *int `json:"ccProtectMode"`

	/* cc阈值大小 (Optional) */
	CcThreshold *int `json:"ccThreshold"`

	/* cc限速大小,ccProtectMode为自定义时才需要指定,统计周期为1分钟 (Optional) */
	CcSpeedLimit *int `json:"ccSpeedLimit"`
}

type ForwardRule

type ForwardRule struct {

	/* 规则id (Optional) */
	ForwardRuleId int64 `json:"forwardRuleId"`

	/* TCP或UDP (Optional) */
	Protocol string `json:"protocol"`

	/* 规则的cname (Optional) */
	Cname string `json:"cname"`

	/* 回源类型:ip或者domain (Optional) */
	OriginType string `json:"originType"`

	/* 端口号 (Optional) */
	Port int `json:"port"`

	/* 转发规则:wrr->带权重的轮询,wlc->加权最小连接,rr->不带权重的轮询,sh->源地址hash (Optional) */
	Algorithm string `json:"algorithm"`

	/* 回源地址:originType为ip时为多个填多个ip,originType为domain时填一个域名 (Optional) */
	OriginAddr []string `json:"originAddr"`

	/* 回源域名 (Optional) */
	OriginDomain string `json:"originDomain"`

	/* 回源端口号 (Optional) */
	OriginPort int `json:"originPort"`

	/* 0防御状态,1回源状态 (Optional) */
	Status int `json:"status"`
}

type ForwardRuleSpec

type ForwardRuleSpec struct {

	/* 协议:TCP或者UDP (Optional) */
	Protocol *string `json:"protocol"`

	/* 端口号 (Optional) */
	Port *int `json:"port"`

	/* 转发规则:wrr->带权重的轮询,wlc->加权最小连接,rr->不带权重的轮询,sh->源地址hash (Optional) */
	Algorithm *string `json:"algorithm"`

	/* 回源类型,ip或者domain (Optional) */
	OriginType *string `json:"originType"`

	/* 回源地址:originType为ip时为多个填多个ip,originType为domain时填一个域名 (Optional) */
	OriginAddr []string `json:"originAddr"`

	/* 回源域名 (Optional) */
	OriginDomain *string `json:"originDomain"`

	/* 回源端口号 (Optional) */
	OriginPort *int `json:"originPort"`
}

type Instance

type Instance struct {

	/* 实例id (Optional) */
	InstanceId int64 `json:"instanceId"`

	/* 实例名称 (Optional) */
	Name string `json:"name"`

	/* 线路,UNICOM、TELECOM (Optional) */
	Carrier string `json:"carrier"`

	/* 触发弹性带宽的次数 (Optional) */
	ElasticTriggerCount int `json:"elasticTriggerCount"`

	/* 超峰次数 (Optional) */
	AbovePeakCount int `json:"abovePeakCount"`

	/* 保底带宽 (Optional) */
	Bp int `json:"bp"`

	/* 弹性带宽 (Optional) */
	Ep int `json:"ep"`

	/* 业务带宽大小 (Optional) */
	Bw int `json:"bw"`

	/* cc阈值大小 (Optional) */
	CcThreshold int `json:"ccThreshold"`

	/* 非网站类规则数 (Optional) */
	RuleCount int `json:"ruleCount"`

	/* 网站类规则数 (Optional) */
	WebRuleCount int `json:"webRuleCount"`

	/* PAID|ARREARS|EXPIRED (Optional) */
	ChargeStatus string `json:"chargeStatus"`

	/* SAFE|CLEANING|BLOCKING (Optional) */
	SecurityStatus string `json:"securityStatus"`

	/* 实例的创建的时间 (Optional) */
	CreateTime int64 `json:"createTime"`

	/* 实例的过期时间 (Optional) */
	ExpireTime int64 `json:"expireTime"`

	/* 资源id,升级和续费时使用 (Optional) */
	ResourceId string `json:"resourceId"`

	/* cc防护模式,0正常、1紧急、2宽松、3自定义 (Optional) */
	CcProtectMode int `json:"ccProtectMode"`

	/* cc开关状态,0关闭,1开启 (Optional) */
	CcProtectStatus int `json:"ccProtectStatus"`

	/* cc防护模式为自定义时的限速大小 (Optional) */
	CcSpeedLimit int `json:"ccSpeedLimit"`

	/* cc防护模式为自定义时的限速周期 (Optional) */
	CcSpeedPeriod int `json:"ccSpeedPeriod"`

	/* ip黑名单列表 (Optional) */
	IpBlackList []string `json:"ipBlackList"`

	/* ip黑名单状态,0关闭,1开启 (Optional) */
	IpBlackStatus int `json:"ipBlackStatus"`

	/* ip白名单列表 (Optional) */
	IpWhiteList []string `json:"ipWhiteList"`

	/* ip白名单状态,0关闭,1开启 (Optional) */
	IpWhiteStatus int `json:"ipWhiteStatus"`

	/* 用户pin (Optional) */
	Pin string `json:"pin"`

	/* url白名单列表 (Optional) */
	UrlWhitelist []string `json:"urlWhitelist"`

	/* url白名单状态,0关闭,1开启 (Optional) */
	UrlWhitelistStatus int `json:"urlWhitelistStatus"`
}

type InstanceSpec

type InstanceSpec struct {

	/* 实例名称 (Optional) */
	Name *string `json:"name"`

	/* 购买类型:1新购 3升级 (Optional) */
	BuyType *int `json:"buyType"`

	/* 购买时长单位:3月 4年 (Optional) */
	TimeUnit *int `json:"timeUnit"`

	/* 购买时长跨度 (Optional) */
	TimeSpan *int `json:"timeSpan"`

	/* 线路:UNICOM、TELECOM (Optional) */
	Carrier *string `json:"carrier"`

	/* 保底带宽:单位Gbps (Optional) */
	Bp *int `json:"bp"`

	/* 弹性带宽:单位Gbps (Optional) */
	Ep *int `json:"ep"`

	/* 业务带宽:单位Mbps (Optional) */
	Bw *int `json:"bw"`
}

type WebRule

type WebRule struct {

	/* 规则id (Optional) */
	WebRuleId int64 `json:"webRuleId"`

	/* 子域名 (Optional) */
	Domain string `json:"domain"`

	/* 规则的cname (Optional) */
	Cname string `json:"cname"`

	/* 协议:HTTP、HTTPS、HTTP_HTTPS (Optional) */
	Protocol string `json:"protocol"`

	/* 端口号,80,443 (Optional) */
	Port string `json:"port"`

	/* 回源类型:ip或者domain (Optional) */
	OriginType string `json:"originType"`

	/* 回源地址:originType为ip时为多个填多个ip,originType为domain时填一个域名 (Optional) */
	OriginAddr []string `json:"originAddr"`

	/* 证书内容 (Optional) */
	HttpsCertContent string `json:"httpsCertContent"`

	/* 证书私钥 (Optional) */
	HttpsRsaKey string `json:"httpsRsaKey"`

	/* 证书状态:0异常,1正常 (Optional) */
	HttpCertStatus int `json:"httpCertStatus"`

	/* 0防御状态,1回源状态 (Optional) */
	Status int `json:"status"`

	/* 0CC关闭 1CC开启 (Optional) */
	CcStatus int `json:"ccStatus"`
}

type WebRuleSpec

type WebRuleSpec struct {

	/* 子域名 (Optional) */
	Domain *string `json:"domain"`

	/* 协议:HTTP、HTTPS、HTTP_HTTPS (Optional) */
	Protocol *string `json:"protocol"`

	/* 端口号,80,443 (Optional) */
	Port *string `json:"port"`

	/* 回源类型:ip或者domain (Optional) */
	OriginType *string `json:"originType"`

	/* 回源地址:originType为ip时为多个填多个ip,originType为domain时填一个域名 (Optional) */
	OriginAddr []string `json:"originAddr"`

	/* 证书内容 (Optional) */
	HttpsCertContent *string `json:"httpsCertContent"`

	/* 证书私钥 (Optional) */
	HttpsRsaKey *string `json:"httpsRsaKey"`
}

Jump to

Keyboard shortcuts

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