Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultRegion = "cn-beijing" ServiceVersion = "2021-07-05" ServiceName = "gtm" Timeout = 15 )
Variables ¶
View Source
var ( ServiceInfo = &base.ServiceInfo{ Timeout: Timeout * time.Second, Host: "open.volcengineapi.com", Header: http.Header{ "Accept": []string{"application/json"}, }, Scheme: "http", Credentials: base.Credentials{ Service: ServiceName, Region: DefaultRegion, AccessKeyID: os.Getenv("VOLC_ACCESSKEY"), SecretAccessKey: os.Getenv("VOLC_SECRETKEY"), }, } )
Functions ¶
This section is empty.
Types ¶
type SDKClient ¶
SDKClient .
func (*SDKClient) GetServiceInfo ¶
func (p *SDKClient) GetServiceInfo() *base.ServiceInfo
GetServiceInfo interface
type TopRespError ¶
type TopRespMeta ¶
type TopRespMeta struct { Action string `form:"Action" json:"Action"` Error TopRespError `form:"Error" json:"Error"` Region string `form:"Region" json:"Region"` RequestID string `form:"RequestId" json:"RequestId"` Service string `form:"Service" json:"Service"` Version string `form:"Version" json:"Version"` }
type TopResponse ¶
type TopResponse struct { ResponseMetadata TopRespMeta `form:"ResponseMetadata" json:"ResponseMetadata"` Result json.RawMessage `form:"Result" json:"Result"` }
Click to show internal directories.
Click to hide internal directories.