Documentation
¶
Index ¶
- func InjectHttp(r *http.Request) func(model.SpanContext)
- func R() *resty.Request
- type Option
- type ReqClient
- func (c *ReqClient) RDelete(url string, query map[string]string, ctx context.Context, v interface{}) error
- func (c *ReqClient) RGet(url string, query map[string]string, ctx context.Context, v interface{}) error
- func (c *ReqClient) RPost(url string, body interface{}, ctx context.Context, v interface{}) error
- func (c *ReqClient) RPut(url string, body interface{}, ctx context.Context, v interface{}) error
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectHttp ¶
func InjectHttp(r *http.Request) func(model.SpanContext)
InjectHttp 将context写入http请求头
Types ¶
type ReqClient ¶
ReqClient http客户端
func (*ReqClient) RDelete ¶
func (c *ReqClient) RDelete(url string, query map[string]string, ctx context.Context, v interface{}) error
RDelete delete请求
func (*ReqClient) RGet ¶
func (c *ReqClient) RGet(url string, query map[string]string, ctx context.Context, v interface{}) error
RGet get请求
Click to show internal directories.
Click to hide internal directories.