Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionModifier ¶
type OptionModifier func(*options)
OptionModifier is a wrapper for options.
func WithAllowRoot ¶
func WithAllowRoot() OptionModifier
WithAllowRoot will make it so that root spans will be created if a trace could not be found using opentracing's SpanFromContext method.
func WithDistributedTracing ¶
func WithDistributedTracing() OptionModifier
WithDistributedTracing will make it so that a wrapped driver is used that supports the opentracing API.
func WithOmitArgsFromTraceSpans ¶
func WithOmitArgsFromTraceSpans() OptionModifier
WithOmitArgsFromTraceSpans will make it so that query arguments are omitted from tracing spans.
func WithRandomDriverName ¶
func WithRandomDriverName() OptionModifier
WithRandomDriverName is specifically for writing tests as you can't register a driver with the same name more than once.
type SQLConnection ¶
type SQLConnection struct { DSN string // contains filtered or unexported fields }
func (*SQLConnection) GetDatabase ¶
func (c *SQLConnection) GetDatabase() *sqlx.DB
Click to show internal directories.
Click to hide internal directories.