Documentation
¶
Index ¶
- type Client
- func (x *Client) Excel(ctx context.Context, name string, sheets Sheets) (err error)
- func (x *Client) GetCities(ctx context.Context, country string, state string, fields []string) (data []model.City, err error)
- func (x *Client) GetCountries(ctx context.Context, fields []string) (data []model.Country, err error)
- func (x *Client) GetIp(ctx context.Context, ip string) (data M, err error)
- func (x *Client) GetStates(ctx context.Context, country string, fields []string) (data []model.State, err error)
- func (x *Client) Ping(ctx context.Context) (result M, err error)
- func (x *Client) R(method string, path string) *OpenAPI
- type Cos
- type ExcelMetadata
- type M
- type OpenAPI
- type Option
- type OptionFunc
- type Sheets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.2.0
func (*Client) GetCountries ¶ added in v0.2.0
type ExcelMetadata ¶ added in v0.3.0
type OpenAPI ¶
type OpenAPI struct {
Client *Client
Method string
Path string
Header map[string]string
Query url.Values
Body []byte
}
func (*OpenAPI) SetAuthorization ¶
func (*OpenAPI) SetHeaders ¶ added in v0.2.0
type OptionFunc ¶
type OptionFunc func(x *Client)
func SetApiGateway ¶ added in v0.2.0
func SetApiGateway(key string, secret string) OptionFunc
SetApiGateway 设置网关认证 https://cloud.tencent.com/document/product/628/55088
func SetCos ¶ added in v0.3.0
func SetCos(url string, id string, key string) OptionFunc
SetCos 设置对象存储 https://cloud.tencent.com/document/product/436
Click to show internal directories.
Click to hide internal directories.