yugabytedb

package
v0.19.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const SourceKind string = "yugabytedb"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name                            string `yaml:"name" validate:"required"`
	Kind                            string `yaml:"kind" validate:"required"`
	Host                            string `yaml:"host" validate:"required"`
	Port                            string `yaml:"port" validate:"required"`
	User                            string `yaml:"user" validate:"required"`
	Password                        string `yaml:"password" validate:"required"`
	Database                        string `yaml:"database" validate:"required"`
	LoadBalance                     string `yaml:"loadBalance"`
	TopologyKeys                    string `yaml:"topologyKeys"`
	YBServersRefreshInterval        string `yaml:"ybServersRefreshInterval"`
	FallBackToTopologyKeysOnly      string `yaml:"fallbackToTopologyKeysOnly"`
	FailedHostReconnectDelaySeconds string `yaml:"failedHostReconnectDelaySecs"`
}

func (Config) Initialize

func (r Config) Initialize(ctx context.Context, tracer trace.Tracer) (sources.Source, error)

func (Config) SourceConfigKind

func (r Config) SourceConfigKind() string

type Source

type Source struct {
	Name string `yaml:"name"`
	Kind string `yaml:"kind"`
	Pool *pgxpool.Pool
}

func (*Source) SourceKind

func (s *Source) SourceKind() string

func (*Source) YugabyteDBPool

func (s *Source) YugabyteDBPool() *pgxpool.Pool

Jump to

Keyboard shortcuts

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