 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ( ServiceInfoMap = map[string]*base.ServiceInfo{ base.RegionCnNorth1: { Timeout: 5 * time.Second, Host: "riskcontrol.volcengineapi.com", Scheme: "https", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionCnNorth1, Service: "AdBlocker"}, }, base.RegionApSingapore: { Timeout: 5 * time.Second, Host: "open-ap-singapore-1.volcengineapi.com", Scheme: "https", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionApSingapore, Service: "AdBlocker"}, }, base.RegionUsEast1: { Timeout: 5 * time.Second, Host: "open-us-east-1.volcengineapi.com", Scheme: "https", Header: http.Header{ "Accept": []string{"application/json"}, }, Credentials: base.Credentials{Region: base.RegionUsEast1, Service: "AdBlocker"}, }, } ApiInfoList = map[string]*base.ApiInfo{ "AdBlock": { Method: http.MethodPost, Path: "/", Query: url.Values{ "Action": []string{"AdBlock"}, "Version": []string{"2021-01-06"}, }, }, } )
      View Source
      
  
var DefaultInstance = NewInstance()
    Functions ¶
func UnmarshalResultInto ¶
Types ¶
type AdBlockRequest ¶
type AdBlockResponse ¶
type AdBlockResponse struct {
	RequestId string       `json:"RequestId"`
	Code      int          `json:"Code"`
	Message   string       `json:"Message"`
	Data      DecisionData `json:"Data"`
}
    type AdBlocker ¶
func NewInstance ¶
func NewInstance() *AdBlocker
func (*AdBlocker) AdBlock ¶
func (p *AdBlocker) AdBlock(req *AdBlockRequest) (*AdBlockResponse, error)
func (*AdBlocker) CloseRetry ¶
func (p *AdBlocker) CloseRetry()
type DecisionData ¶
 Click to show internal directories. 
   Click to hide internal directories.