 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ( ServiceInfoMap = map[string]*base.ServiceInfo{ base.RegionCnNorth1: { Timeout: 5 * time.Second, Host: "open.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionCnNorth1, Service: "game_protect"}, }, base.RegionApSingapore: { Timeout: 5 * time.Second, Host: "open-ap-singapore-1.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionApSingapore, Service: "game_protect"}, }, base.RegionUsEast1: { Timeout: 5 * time.Second, Host: "open-us-east-1.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionUsEast1, Service: "game_protect"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "RiskResult": { Method: http.MethodGet, Path: "/", Query: url.Values{ "Action": []string{"RiskResult"}, "Version": []string{"2021-04-25"}, }, }, } )
      View Source
      
  
var DefaultInstance = NewInstance()
    Functions ¶
func ToUrlValues ¶
func UnmarshalResultInto ¶
Types ¶
type GameProtector ¶
func NewInstance ¶
func NewInstance() *GameProtector
func (*GameProtector) CloseRetry ¶
func (p *GameProtector) CloseRetry()
func (*GameProtector) Retry ¶
func (p *GameProtector) Retry() bool
func (*GameProtector) RiskResult ¶
func (p *GameProtector) RiskResult(req *RiskResultRequest) (*RiskResultResponse, error)
func (*GameProtector) SetRegion ¶
func (p *GameProtector) SetRegion(region string) error
type RiskResultRequest ¶
type RiskResultRequest struct {
	AppId     int64  `json:"AppId" form:"AppId"`
	Service   string `json:"Service" form:"Service"`
	StartTime int64  `json:"StartTime" form:"StartTime"`
	EndTime   int64  `json:"EndTime" form:"EndTime"`
	Page
}
    func (*RiskResultRequest) ToQuery ¶
func (r *RiskResultRequest) ToQuery() url.Values
 Click to show internal directories. 
   Click to hide internal directories.