Documentation
¶
Index ¶
- type M
- type OpenAPI
- func (x *OpenAPI) Do(ctx context.Context, req *protocol.Request) (resp *protocol.Response, err error)
- func (x *OpenAPI) Ip(ctx context.Context, ip string) (result M, err error)
- func (x *OpenAPI) Ping(ctx context.Context) (result M, err error)
- func (x *OpenAPI) R(method string, path string) (req *protocol.Request)
- type Option
- type OptionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenAPI ¶
func (*OpenAPI) Do ¶
func (x *OpenAPI) Do(ctx context.Context, req *protocol.Request) (resp *protocol.Response, err error)
Do 发起请求
type OptionFunc ¶
type OptionFunc func(x *OpenAPI)
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.