Documentation
¶
Index ¶
- type Client
- func (x *Client) CreateExcel(ctx context.Context, dto excel.CreateDto) (data utils.H, 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 M
- type OpenAPI
- type Option
- type OptionFunc
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) CreateExcel ¶
func (*Client) GetCountries ¶ added in v0.2.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
Click to show internal directories.
Click to hide internal directories.