Documentation ¶
Index ¶
- func AddMetaData(ctx context.Context, key string, val string) context.Context
- func GetMetaData(ctx context.Context, key string) (string, error)
- func HttpGet(ctx context.Context, url string) (*http.Response, error)
- func HttpHead(ctx context.Context, url string) (*http.Response, error)
- func HttpPost(ctx context.Context, url string, bodyType string, body io.Reader) (*http.Response, error)
- func StartSpan(ctx context.Context, name, spanType string) (*apm.Span, context.Context)
- func WithAPMContext(ctx context.Context) context.Context
- func WithGrpcContext(ctx context.Context) context.Context
- func WithOrmContext(ctx context.Context, db *gorm.DB) *gorm.DB
- func WithRedigoContext(redisPool *redis.Pool, ctx context.Context) redis.Conn
- type Conn
- type TracingClient
- func (t *TracingClient) HttpDo(ctx context.Context, r *http.Request) (*http.Response, error)
- func (t *TracingClient) HttpGet(ctx context.Context, url string) (*http.Response, error)
- func (t *TracingClient) HttpHead(ctx context.Context, url string) (*http.Response, error)
- func (t *TracingClient) HttpPost(ctx context.Context, url string, bodyType string, body io.Reader) (*http.Response, error)
- type TracingClientIface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
func (*Conn) GetAPMConn ¶
func (*Conn) GetClientConn ¶
func (c *Conn) GetClientConn() (*grpc.ClientConn, error)
type TracingClient ¶
type TracingClientIface ¶
type TracingClientIface interface { HttpGet(ctx context.Context, url string) (*http.Response, error) HttpPost(ctx context.Context, url string, bodyType string, body io.Reader) (*http.Response, error) HttpHead(ctx context.Context, url string) (*http.Response, error) HttpDo(ctx context.Context, r *http.Request) (*http.Response, error) }
func NewTracingClient ¶
func NewTracingClient(client *http.Client) TracingClientIface
Source Files ¶
Click to show internal directories.
Click to hide internal directories.