sources

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudSQLOpts added in v0.1.0

func GetCloudSQLOpts(ipType, userAgent string) ([]cloudsqlconn.Option, error)

GetCloudSQLDialOpts retrieve dial options with the right ip type and user agent for cloud sql databases.

func InitConnectionSpan added in v0.0.5

func InitConnectionSpan(ctx context.Context, tracer trace.Tracer, sourceKind, sourceName string) (context.Context, trace.Span)

InitConnectionSpan adds a span for database pool connection initialization

Types

type Dialect added in v0.0.3

type Dialect string

Dialect represents the dialect type of a database.

func (*Dialect) String added in v0.0.3

func (i *Dialect) String() string

func (*Dialect) UnmarshalYAML added in v0.0.3

func (i *Dialect) UnmarshalYAML(ctx context.Context, unmarshal func(interface{}) error) error

type IPType added in v0.0.3

type IPType string

func (*IPType) String added in v0.0.3

func (i *IPType) String() string

func (*IPType) UnmarshalYAML added in v0.0.3

func (i *IPType) UnmarshalYAML(ctx context.Context, unmarshal func(interface{}) error) error

type Source

type Source interface {
	SourceKind() string
}

Source is the interface for the source itself.

type SourceConfig added in v0.0.2

type SourceConfig interface {
	SourceConfigKind() string
	Initialize(ctx context.Context, tracer trace.Tracer) (Source, error)
}

SourceConfig is the interface for configuring a source.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL