Versions in this module Expand all Collapse all v1 v1.1.5 Dec 22, 2023 v1.0.0 Dec 22, 2023 Changes in this version + 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 struct + CertFile string + CertServerName string + ServerName string + ServerPort uint64 + func NewConn(serviceName string) *Conn + func (c *Conn) GetAPMConn(ctx context.Context) (*grpc.ClientConn, error) + func (c *Conn) GetClientConn() (*grpc.ClientConn, error) + type TracingClient struct + HttpClient *http.Client + 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 interface + HttpDo func(ctx context.Context, r *http.Request) (*http.Response, error) + HttpGet func(ctx context.Context, url string) (*http.Response, error) + HttpHead func(ctx context.Context, url string) (*http.Response, error) + HttpPost func(ctx context.Context, url string, bodyType string, body io.Reader) (*http.Response, error) + func NewTracingClient(client *http.Client) TracingClientIface