Versions in this module Expand all Collapse all v1 v1.1.0 Jul 29, 2021 Changes in this version + func InjectHttp(r *http.Request) func(model.SpanContext) + func R() *resty.Request + type Option func(*ReqClient) + func Name(name string) Option + func Tracer(tracer *tracing.Tracer) Option + type ReqClient struct + ServiceName string + func New(options ...Option) *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 struct + ServiceName string + func (tran *Transport) RoundTrip(r *http.Request) (*http.Response, error)