Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultTimeout = 10 * time.Second
)
Variables ¶
View Source
var ( ServiceInfoMap = map[string]*base.ServiceInfo{ base.RegionCnNorth1: { Timeout: DefaultTimeout, Host: "cloud-vms.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{ Region: base.RegionCnNorth1, Service: "volc_risk_http", }, }, } ApiInfoList = map[string]*base.ApiInfo{ "QueryCanCall": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"QueryCanCall"}, "Version": []string{"2021-01-01"}, }, }, } )
View Source
var DefaultInstance = NewInstance()
DefaultInstance 默认的实例
Functions ¶
This section is empty.
Types ¶
type NumberStatus ¶
type Risk ¶
func NewInstance ¶
func NewInstance() *Risk
func (*Risk) QueryCanCall ¶
func (p *Risk) QueryCanCall(req *RiskControlReq) (*RiskControlResponse, int, error)
type RiskControlReq ¶
type RiskControlResponse ¶
type RiskControlResponse struct { ResponseMetadata base.ResponseMetadata Result []NumberStatus }
Click to show internal directories.
Click to hide internal directories.