Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Close()
- func (c *Client) GetCtxDb(ctx context.Context, dbName string) *gorm.DB
- func (c *Client) GetDb(dbName string) *gorm.DB
- func (c *Client) Ping() []error
- func (c *Client) RegisterMetricsCallbacks(ctx context.Context, db *gorm.DB)
- func (c *Client) RegisterTraceCallbacks(db *gorm.DB)
- func (c *Client) Stats()
- func (c *Client) Trace(ctx context.Context, db *gorm.DB) *TraceClient
- func (c *Client) TraceWithSpanContext(ctx opentracing.SpanContext, db *gorm.DB) *TraceClient
- type DbConfig
- type Option
- type TraceClient
- type TraceContext
Constants ¶
View Source
const ( OpenTracingContextKey = "gorm:opentracing_context" OpenTracingSpanContextKey = "gorm:opentracing_spanner" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) RegisterMetricsCallbacks ¶
func (*Client) RegisterTraceCallbacks ¶
func (*Client) TraceWithSpanContext ¶
func (c *Client) TraceWithSpanContext(ctx opentracing.SpanContext, db *gorm.DB) *TraceClient
type TraceClient ¶
type TraceContext ¶
type TraceContext struct {
// contains filtered or unexported fields
}
func (*TraceContext) StartSpan ¶
func (ctx *TraceContext) StartSpan(name string, tags ...opentracing.StartSpanOption) opentracing.Span
Click to show internal directories.
Click to hide internal directories.