Documentation ¶
Index ¶
- type Client
- func NewClient() (client *Client, err error)
- func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
- func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error)
- func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
- func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
- func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
- func NewClientWithRamRoleArnAndPolicy(regionId string, ...) (client *Client, err error)
- func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
- func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
- func (client *Client) DescribeGeoipInstance(request *DescribeGeoipInstanceRequest) (response *DescribeGeoipInstanceResponse, err error)
- func (client *Client) DescribeGeoipInstanceDataInfos(request *DescribeGeoipInstanceDataInfosRequest) (response *DescribeGeoipInstanceDataInfosResponse, err error)
- func (client *Client) DescribeGeoipInstanceDataInfosWithCallback(request *DescribeGeoipInstanceDataInfosRequest, ...) <-chan int
- func (client *Client) DescribeGeoipInstanceDataInfosWithChan(request *DescribeGeoipInstanceDataInfosRequest) (<-chan *DescribeGeoipInstanceDataInfosResponse, <-chan error)
- func (client *Client) DescribeGeoipInstanceDataUrl(request *DescribeGeoipInstanceDataUrlRequest) (response *DescribeGeoipInstanceDataUrlResponse, err error)
- func (client *Client) DescribeGeoipInstanceDataUrlWithCallback(request *DescribeGeoipInstanceDataUrlRequest, ...) <-chan int
- func (client *Client) DescribeGeoipInstanceDataUrlWithChan(request *DescribeGeoipInstanceDataUrlRequest) (<-chan *DescribeGeoipInstanceDataUrlResponse, <-chan error)
- func (client *Client) DescribeGeoipInstanceStatistics(request *DescribeGeoipInstanceStatisticsRequest) (response *DescribeGeoipInstanceStatisticsResponse, err error)
- func (client *Client) DescribeGeoipInstanceStatisticsWithCallback(request *DescribeGeoipInstanceStatisticsRequest, ...) <-chan int
- func (client *Client) DescribeGeoipInstanceStatisticsWithChan(request *DescribeGeoipInstanceStatisticsRequest) (<-chan *DescribeGeoipInstanceStatisticsResponse, <-chan error)
- func (client *Client) DescribeGeoipInstanceWithCallback(request *DescribeGeoipInstanceRequest, ...) <-chan int
- func (client *Client) DescribeGeoipInstanceWithChan(request *DescribeGeoipInstanceRequest) (<-chan *DescribeGeoipInstanceResponse, <-chan error)
- func (client *Client) DescribeGeoipInstances(request *DescribeGeoipInstancesRequest) (response *DescribeGeoipInstancesResponse, err error)
- func (client *Client) DescribeGeoipInstancesWithCallback(request *DescribeGeoipInstancesRequest, ...) <-chan int
- func (client *Client) DescribeGeoipInstancesWithChan(request *DescribeGeoipInstancesRequest) (<-chan *DescribeGeoipInstancesResponse, <-chan error)
- func (client *Client) DescribeIpv4Location(request *DescribeIpv4LocationRequest) (response *DescribeIpv4LocationResponse, err error)
- func (client *Client) DescribeIpv4LocationWithCallback(request *DescribeIpv4LocationRequest, ...) <-chan int
- func (client *Client) DescribeIpv4LocationWithChan(request *DescribeIpv4LocationRequest) (<-chan *DescribeIpv4LocationResponse, <-chan error)
- func (client *Client) DescribeIpv6Location(request *DescribeIpv6LocationRequest) (response *DescribeIpv6LocationResponse, err error)
- func (client *Client) DescribeIpv6LocationWithCallback(request *DescribeIpv6LocationRequest, ...) <-chan int
- func (client *Client) DescribeIpv6LocationWithChan(request *DescribeIpv6LocationRequest) (<-chan *DescribeIpv6LocationResponse, <-chan error)
- type DataInfo
- type DataInfos
- type DescribeGeoipInstanceDataInfosRequest
- type DescribeGeoipInstanceDataInfosResponse
- type DescribeGeoipInstanceDataUrlRequest
- type DescribeGeoipInstanceDataUrlResponse
- type DescribeGeoipInstanceRequest
- type DescribeGeoipInstanceResponse
- type DescribeGeoipInstanceStatisticsRequest
- type DescribeGeoipInstanceStatisticsResponse
- type DescribeGeoipInstancesRequest
- type DescribeGeoipInstancesResponse
- type DescribeIpv4LocationRequest
- type DescribeIpv4LocationResponse
- type DescribeIpv6LocationRequest
- type DescribeIpv6LocationResponse
- type GeoipInstance
- type GeoipInstances
- type Statistic
- type Statistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the sdk client struct, each func corresponds to an OpenAPI
func NewClientWithAccessKey ¶
func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error)
NewClientWithAccessKey is a shortcut to create sdk client with accesskey usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithEcsRamRole ¶
NewClientWithEcsRamRole is a shortcut to create sdk client with ecs ram role usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithOptions ¶
func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error)
NewClientWithOptions creates a sdk client with regionId/sdkConfig/credential this is the common api to create a sdk client
func NewClientWithProvider ¶
func NewClientWithProvider(regionId string, providers ...provider.Provider) (client *Client, err error)
NewClientWithProvider creates a sdk client with providers usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArn ¶
func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRamRoleArnAndPolicy ¶
func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error)
NewClientWithRamRoleArn is a shortcut to create sdk client with ram roleArn and policy usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithRsaKeyPair ¶
func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error)
NewClientWithRsaKeyPair is a shortcut to create sdk client with rsa key pair usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func NewClientWithStsToken ¶
func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error)
NewClientWithStsToken is a shortcut to create sdk client with sts token usage: https://github.com/aliyun/alibaba-cloud-sdk-go/blob/master/docs/2-Client-EN.md
func (*Client) DescribeGeoipInstance ¶
func (client *Client) DescribeGeoipInstance(request *DescribeGeoipInstanceRequest) (response *DescribeGeoipInstanceResponse, err error)
DescribeGeoipInstance invokes the geoip.DescribeGeoipInstance API synchronously
func (*Client) DescribeGeoipInstanceDataInfos ¶ added in v1.61.242
func (client *Client) DescribeGeoipInstanceDataInfos(request *DescribeGeoipInstanceDataInfosRequest) (response *DescribeGeoipInstanceDataInfosResponse, err error)
DescribeGeoipInstanceDataInfos invokes the geoip.DescribeGeoipInstanceDataInfos API synchronously
func (*Client) DescribeGeoipInstanceDataInfosWithCallback ¶ added in v1.61.242
func (client *Client) DescribeGeoipInstanceDataInfosWithCallback(request *DescribeGeoipInstanceDataInfosRequest, callback func(response *DescribeGeoipInstanceDataInfosResponse, err error)) <-chan int
DescribeGeoipInstanceDataInfosWithCallback invokes the geoip.DescribeGeoipInstanceDataInfos API asynchronously
func (*Client) DescribeGeoipInstanceDataInfosWithChan ¶ added in v1.61.242
func (client *Client) DescribeGeoipInstanceDataInfosWithChan(request *DescribeGeoipInstanceDataInfosRequest) (<-chan *DescribeGeoipInstanceDataInfosResponse, <-chan error)
DescribeGeoipInstanceDataInfosWithChan invokes the geoip.DescribeGeoipInstanceDataInfos API asynchronously
func (*Client) DescribeGeoipInstanceDataUrl ¶ added in v1.61.242
func (client *Client) DescribeGeoipInstanceDataUrl(request *DescribeGeoipInstanceDataUrlRequest) (response *DescribeGeoipInstanceDataUrlResponse, err error)
DescribeGeoipInstanceDataUrl invokes the geoip.DescribeGeoipInstanceDataUrl API synchronously
func (*Client) DescribeGeoipInstanceDataUrlWithCallback ¶ added in v1.61.242
func (client *Client) DescribeGeoipInstanceDataUrlWithCallback(request *DescribeGeoipInstanceDataUrlRequest, callback func(response *DescribeGeoipInstanceDataUrlResponse, err error)) <-chan int
DescribeGeoipInstanceDataUrlWithCallback invokes the geoip.DescribeGeoipInstanceDataUrl API asynchronously
func (*Client) DescribeGeoipInstanceDataUrlWithChan ¶ added in v1.61.242
func (client *Client) DescribeGeoipInstanceDataUrlWithChan(request *DescribeGeoipInstanceDataUrlRequest) (<-chan *DescribeGeoipInstanceDataUrlResponse, <-chan error)
DescribeGeoipInstanceDataUrlWithChan invokes the geoip.DescribeGeoipInstanceDataUrl API asynchronously
func (*Client) DescribeGeoipInstanceStatistics ¶
func (client *Client) DescribeGeoipInstanceStatistics(request *DescribeGeoipInstanceStatisticsRequest) (response *DescribeGeoipInstanceStatisticsResponse, err error)
DescribeGeoipInstanceStatistics invokes the geoip.DescribeGeoipInstanceStatistics API synchronously
func (*Client) DescribeGeoipInstanceStatisticsWithCallback ¶
func (client *Client) DescribeGeoipInstanceStatisticsWithCallback(request *DescribeGeoipInstanceStatisticsRequest, callback func(response *DescribeGeoipInstanceStatisticsResponse, err error)) <-chan int
DescribeGeoipInstanceStatisticsWithCallback invokes the geoip.DescribeGeoipInstanceStatistics API asynchronously
func (*Client) DescribeGeoipInstanceStatisticsWithChan ¶
func (client *Client) DescribeGeoipInstanceStatisticsWithChan(request *DescribeGeoipInstanceStatisticsRequest) (<-chan *DescribeGeoipInstanceStatisticsResponse, <-chan error)
DescribeGeoipInstanceStatisticsWithChan invokes the geoip.DescribeGeoipInstanceStatistics API asynchronously
func (*Client) DescribeGeoipInstanceWithCallback ¶
func (client *Client) DescribeGeoipInstanceWithCallback(request *DescribeGeoipInstanceRequest, callback func(response *DescribeGeoipInstanceResponse, err error)) <-chan int
DescribeGeoipInstanceWithCallback invokes the geoip.DescribeGeoipInstance API asynchronously
func (*Client) DescribeGeoipInstanceWithChan ¶
func (client *Client) DescribeGeoipInstanceWithChan(request *DescribeGeoipInstanceRequest) (<-chan *DescribeGeoipInstanceResponse, <-chan error)
DescribeGeoipInstanceWithChan invokes the geoip.DescribeGeoipInstance API asynchronously
func (*Client) DescribeGeoipInstances ¶
func (client *Client) DescribeGeoipInstances(request *DescribeGeoipInstancesRequest) (response *DescribeGeoipInstancesResponse, err error)
DescribeGeoipInstances invokes the geoip.DescribeGeoipInstances API synchronously
func (*Client) DescribeGeoipInstancesWithCallback ¶
func (client *Client) DescribeGeoipInstancesWithCallback(request *DescribeGeoipInstancesRequest, callback func(response *DescribeGeoipInstancesResponse, err error)) <-chan int
DescribeGeoipInstancesWithCallback invokes the geoip.DescribeGeoipInstances API asynchronously
func (*Client) DescribeGeoipInstancesWithChan ¶
func (client *Client) DescribeGeoipInstancesWithChan(request *DescribeGeoipInstancesRequest) (<-chan *DescribeGeoipInstancesResponse, <-chan error)
DescribeGeoipInstancesWithChan invokes the geoip.DescribeGeoipInstances API asynchronously
func (*Client) DescribeIpv4Location ¶ added in v1.61.107
func (client *Client) DescribeIpv4Location(request *DescribeIpv4LocationRequest) (response *DescribeIpv4LocationResponse, err error)
DescribeIpv4Location invokes the geoip.DescribeIpv4Location API synchronously
func (*Client) DescribeIpv4LocationWithCallback ¶ added in v1.61.107
func (client *Client) DescribeIpv4LocationWithCallback(request *DescribeIpv4LocationRequest, callback func(response *DescribeIpv4LocationResponse, err error)) <-chan int
DescribeIpv4LocationWithCallback invokes the geoip.DescribeIpv4Location API asynchronously
func (*Client) DescribeIpv4LocationWithChan ¶ added in v1.61.107
func (client *Client) DescribeIpv4LocationWithChan(request *DescribeIpv4LocationRequest) (<-chan *DescribeIpv4LocationResponse, <-chan error)
DescribeIpv4LocationWithChan invokes the geoip.DescribeIpv4Location API asynchronously
func (*Client) DescribeIpv6Location ¶
func (client *Client) DescribeIpv6Location(request *DescribeIpv6LocationRequest) (response *DescribeIpv6LocationResponse, err error)
DescribeIpv6Location invokes the geoip.DescribeIpv6Location API synchronously
func (*Client) DescribeIpv6LocationWithCallback ¶
func (client *Client) DescribeIpv6LocationWithCallback(request *DescribeIpv6LocationRequest, callback func(response *DescribeIpv6LocationResponse, err error)) <-chan int
DescribeIpv6LocationWithCallback invokes the geoip.DescribeIpv6Location API asynchronously
func (*Client) DescribeIpv6LocationWithChan ¶
func (client *Client) DescribeIpv6LocationWithChan(request *DescribeIpv6LocationRequest) (<-chan *DescribeIpv6LocationResponse, <-chan error)
DescribeIpv6LocationWithChan invokes the geoip.DescribeIpv6Location API asynchronously
type DataInfo ¶ added in v1.61.242
type DataInfo struct { Type string `json:"Type" xml:"Type"` Version string `json:"Version" xml:"Version"` UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` UpdateTimestamp int64 `json:"UpdateTimestamp" xml:"UpdateTimestamp"` DownloadCount int64 `json:"DownloadCount" xml:"DownloadCount"` }
DataInfo is a nested struct in geoip response
type DataInfos ¶ added in v1.61.242
type DataInfos struct {
DataInfo []DataInfo `json:"DataInfo" xml:"DataInfo"`
}
DataInfos is a nested struct in geoip response
type DescribeGeoipInstanceDataInfosRequest ¶ added in v1.61.242
type DescribeGeoipInstanceDataInfosRequest struct { *requests.RpcRequest LocationDataType string `position:"Query" name:"LocationDataType"` InstanceId string `position:"Query" name:"InstanceId"` UserClientIp string `position:"Query" name:"UserClientIp"` Lang string `position:"Query" name:"Lang"` }
DescribeGeoipInstanceDataInfosRequest is the request struct for api DescribeGeoipInstanceDataInfos
func CreateDescribeGeoipInstanceDataInfosRequest ¶ added in v1.61.242
func CreateDescribeGeoipInstanceDataInfosRequest() (request *DescribeGeoipInstanceDataInfosRequest)
CreateDescribeGeoipInstanceDataInfosRequest creates a request to invoke DescribeGeoipInstanceDataInfos API
type DescribeGeoipInstanceDataInfosResponse ¶ added in v1.61.242
type DescribeGeoipInstanceDataInfosResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` DataInfos DataInfos `json:"DataInfos" xml:"DataInfos"` }
DescribeGeoipInstanceDataInfosResponse is the response struct for api DescribeGeoipInstanceDataInfos
func CreateDescribeGeoipInstanceDataInfosResponse ¶ added in v1.61.242
func CreateDescribeGeoipInstanceDataInfosResponse() (response *DescribeGeoipInstanceDataInfosResponse)
CreateDescribeGeoipInstanceDataInfosResponse creates a response to parse from DescribeGeoipInstanceDataInfos response
type DescribeGeoipInstanceDataUrlRequest ¶ added in v1.61.242
type DescribeGeoipInstanceDataUrlRequest struct { *requests.RpcRequest InstanceId string `position:"Query" name:"InstanceId"` DataType string `position:"Query" name:"DataType"` UserClientIp string `position:"Query" name:"UserClientIp"` Lang string `position:"Query" name:"Lang"` }
DescribeGeoipInstanceDataUrlRequest is the request struct for api DescribeGeoipInstanceDataUrl
func CreateDescribeGeoipInstanceDataUrlRequest ¶ added in v1.61.242
func CreateDescribeGeoipInstanceDataUrlRequest() (request *DescribeGeoipInstanceDataUrlRequest)
CreateDescribeGeoipInstanceDataUrlRequest creates a request to invoke DescribeGeoipInstanceDataUrl API
type DescribeGeoipInstanceDataUrlResponse ¶ added in v1.61.242
type DescribeGeoipInstanceDataUrlResponse struct { *responses.BaseResponse FixedDomainDownloadUrl string `json:"FixedDomainDownloadUrl" xml:"FixedDomainDownloadUrl"` RequestId string `json:"RequestId" xml:"RequestId"` DownloadUrl string `json:"DownloadUrl" xml:"DownloadUrl"` }
DescribeGeoipInstanceDataUrlResponse is the response struct for api DescribeGeoipInstanceDataUrl
func CreateDescribeGeoipInstanceDataUrlResponse ¶ added in v1.61.242
func CreateDescribeGeoipInstanceDataUrlResponse() (response *DescribeGeoipInstanceDataUrlResponse)
CreateDescribeGeoipInstanceDataUrlResponse creates a response to parse from DescribeGeoipInstanceDataUrl response
type DescribeGeoipInstanceRequest ¶
type DescribeGeoipInstanceRequest struct { *requests.RpcRequest InstanceId string `position:"Query" name:"InstanceId"` UserClientIp string `position:"Query" name:"UserClientIp"` Lang string `position:"Query" name:"Lang"` }
DescribeGeoipInstanceRequest is the request struct for api DescribeGeoipInstance
func CreateDescribeGeoipInstanceRequest ¶
func CreateDescribeGeoipInstanceRequest() (request *DescribeGeoipInstanceRequest)
CreateDescribeGeoipInstanceRequest creates a request to invoke DescribeGeoipInstance API
type DescribeGeoipInstanceResponse ¶
type DescribeGeoipInstanceResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` ProductCode string `json:"ProductCode" xml:"ProductCode"` InstanceId string `json:"InstanceId" xml:"InstanceId"` VersionCode string `json:"VersionCode" xml:"VersionCode"` MaxQps int64 `json:"MaxQps" xml:"MaxQps"` MaxQpd int64 `json:"MaxQpd" xml:"MaxQpd"` QueryCount int64 `json:"QueryCount" xml:"QueryCount"` CreateTime string `json:"CreateTime" xml:"CreateTime"` CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` ExpireTimestamp int64 `json:"ExpireTimestamp" xml:"ExpireTimestamp"` }
DescribeGeoipInstanceResponse is the response struct for api DescribeGeoipInstance
func CreateDescribeGeoipInstanceResponse ¶
func CreateDescribeGeoipInstanceResponse() (response *DescribeGeoipInstanceResponse)
CreateDescribeGeoipInstanceResponse creates a response to parse from DescribeGeoipInstance response
type DescribeGeoipInstanceStatisticsRequest ¶
type DescribeGeoipInstanceStatisticsRequest struct { *requests.RpcRequest StartDate string `position:"Query" name:"StartDate"` InstanceId string `position:"Query" name:"InstanceId"` EndDate string `position:"Query" name:"EndDate"` UserClientIp string `position:"Query" name:"UserClientIp"` Lang string `position:"Query" name:"Lang"` }
DescribeGeoipInstanceStatisticsRequest is the request struct for api DescribeGeoipInstanceStatistics
func CreateDescribeGeoipInstanceStatisticsRequest ¶
func CreateDescribeGeoipInstanceStatisticsRequest() (request *DescribeGeoipInstanceStatisticsRequest)
CreateDescribeGeoipInstanceStatisticsRequest creates a request to invoke DescribeGeoipInstanceStatistics API
type DescribeGeoipInstanceStatisticsResponse ¶
type DescribeGeoipInstanceStatisticsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Statistics Statistics `json:"Statistics" xml:"Statistics"` }
DescribeGeoipInstanceStatisticsResponse is the response struct for api DescribeGeoipInstanceStatistics
func CreateDescribeGeoipInstanceStatisticsResponse ¶
func CreateDescribeGeoipInstanceStatisticsResponse() (response *DescribeGeoipInstanceStatisticsResponse)
CreateDescribeGeoipInstanceStatisticsResponse creates a response to parse from DescribeGeoipInstanceStatistics response
type DescribeGeoipInstancesRequest ¶
type DescribeGeoipInstancesRequest struct { *requests.RpcRequest UserClientIp string `position:"Query" name:"UserClientIp"` Lang string `position:"Query" name:"Lang"` }
DescribeGeoipInstancesRequest is the request struct for api DescribeGeoipInstances
func CreateDescribeGeoipInstancesRequest ¶
func CreateDescribeGeoipInstancesRequest() (request *DescribeGeoipInstancesRequest)
CreateDescribeGeoipInstancesRequest creates a request to invoke DescribeGeoipInstances API
type DescribeGeoipInstancesResponse ¶
type DescribeGeoipInstancesResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` GeoipInstances GeoipInstances `json:"GeoipInstances" xml:"GeoipInstances"` }
DescribeGeoipInstancesResponse is the response struct for api DescribeGeoipInstances
func CreateDescribeGeoipInstancesResponse ¶
func CreateDescribeGeoipInstancesResponse() (response *DescribeGeoipInstancesResponse)
CreateDescribeGeoipInstancesResponse creates a response to parse from DescribeGeoipInstances response
type DescribeIpv4LocationRequest ¶ added in v1.61.107
type DescribeIpv4LocationRequest struct { *requests.RpcRequest Ip string `position:"Query" name:"Ip"` UserClientIp string `position:"Query" name:"UserClientIp"` Lang string `position:"Query" name:"Lang"` }
DescribeIpv4LocationRequest is the request struct for api DescribeIpv4Location
func CreateDescribeIpv4LocationRequest ¶ added in v1.61.107
func CreateDescribeIpv4LocationRequest() (request *DescribeIpv4LocationRequest)
CreateDescribeIpv4LocationRequest creates a request to invoke DescribeIpv4Location API
type DescribeIpv4LocationResponse ¶ added in v1.61.107
type DescribeIpv4LocationResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Ip string `json:"Ip" xml:"Ip"` Country string `json:"Country" xml:"Country"` Province string `json:"Province" xml:"Province"` City string `json:"City" xml:"City"` County string `json:"County" xml:"County"` Isp string `json:"Isp" xml:"Isp"` CountryCode string `json:"CountryCode" xml:"CountryCode"` CountryEn string `json:"CountryEn" xml:"CountryEn"` ProvinceEn string `json:"ProvinceEn" xml:"ProvinceEn"` CityEn string `json:"CityEn" xml:"CityEn"` Longitude string `json:"Longitude" xml:"Longitude"` Latitude string `json:"Latitude" xml:"Latitude"` }
DescribeIpv4LocationResponse is the response struct for api DescribeIpv4Location
func CreateDescribeIpv4LocationResponse ¶ added in v1.61.107
func CreateDescribeIpv4LocationResponse() (response *DescribeIpv4LocationResponse)
CreateDescribeIpv4LocationResponse creates a response to parse from DescribeIpv4Location response
type DescribeIpv6LocationRequest ¶
type DescribeIpv6LocationRequest struct { *requests.RpcRequest Ip string `position:"Query" name:"Ip"` UserClientIp string `position:"Query" name:"UserClientIp"` Lang string `position:"Query" name:"Lang"` }
DescribeIpv6LocationRequest is the request struct for api DescribeIpv6Location
func CreateDescribeIpv6LocationRequest ¶
func CreateDescribeIpv6LocationRequest() (request *DescribeIpv6LocationRequest)
CreateDescribeIpv6LocationRequest creates a request to invoke DescribeIpv6Location API
type DescribeIpv6LocationResponse ¶
type DescribeIpv6LocationResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` Ip string `json:"Ip" xml:"Ip"` Country string `json:"Country" xml:"Country"` Province string `json:"Province" xml:"Province"` City string `json:"City" xml:"City"` County string `json:"County" xml:"County"` Isp string `json:"Isp" xml:"Isp"` CountryCode string `json:"CountryCode" xml:"CountryCode"` CountryEn string `json:"CountryEn" xml:"CountryEn"` ProvinceEn string `json:"ProvinceEn" xml:"ProvinceEn"` CityEn string `json:"CityEn" xml:"CityEn"` Longitude string `json:"Longitude" xml:"Longitude"` Latitude string `json:"Latitude" xml:"Latitude"` }
DescribeIpv6LocationResponse is the response struct for api DescribeIpv6Location
func CreateDescribeIpv6LocationResponse ¶
func CreateDescribeIpv6LocationResponse() (response *DescribeIpv6LocationResponse)
CreateDescribeIpv6LocationResponse creates a response to parse from DescribeIpv6Location response
type GeoipInstance ¶
type GeoipInstance struct { ProductCode string `json:"ProductCode" xml:"ProductCode"` InstanceId string `json:"InstanceId" xml:"InstanceId"` VersionCode string `json:"VersionCode" xml:"VersionCode"` Status string `json:"Status" xml:"Status"` CreateTime string `json:"CreateTime" xml:"CreateTime"` CreateTimestamp int64 `json:"CreateTimestamp" xml:"CreateTimestamp"` ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` ExpireTimestamp int64 `json:"ExpireTimestamp" xml:"ExpireTimestamp"` MaxQps int64 `json:"MaxQps" xml:"MaxQps"` MaxQpd int64 `json:"MaxQpd" xml:"MaxQpd"` }
GeoipInstance is a nested struct in geoip response
type GeoipInstances ¶
type GeoipInstances struct {
GeoipInstance []GeoipInstance `json:"GeoipInstance" xml:"GeoipInstance"`
}
GeoipInstances is a nested struct in geoip response
type Statistic ¶
type Statistic struct { Timestamp int64 `json:"Timestamp" xml:"Timestamp"` Count int64 `json:"Count" xml:"Count"` }
Statistic is a nested struct in geoip response
type Statistics ¶
type Statistics struct {
Statistic []Statistic `json:"Statistic" xml:"Statistic"`
}
Statistics is a nested struct in geoip response
Source Files ¶
- client.go
- describe_geoip_instance.go
- describe_geoip_instance_data_infos.go
- describe_geoip_instance_data_url.go
- describe_geoip_instance_statistics.go
- describe_geoip_instances.go
- describe_ipv4_location.go
- describe_ipv6_location.go
- struct_data_info.go
- struct_data_infos.go
- struct_geoip_instance.go
- struct_geoip_instances.go
- struct_statistic.go
- struct_statistics.go