pgbouncer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBackendDBType = "postgres"
	TLSModeDisable       = "disable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth added in v0.1.0

type Auth struct {
	UserName string
	Password string
}

type Client

type Client struct {
	*sql.DB
}

type KubeDBClientBuilder

type KubeDBClientBuilder struct {
	// contains filtered or unexported fields
}

func NewKubeDBClientBuilder

func NewKubeDBClientBuilder(kc client.Client, pb *dbapi.PgBouncer) *KubeDBClientBuilder

func (*KubeDBClientBuilder) GetPgBouncerXormClient added in v0.1.0

func (o *KubeDBClientBuilder) GetPgBouncerXormClient() (*XormClient, error)

func (*KubeDBClientBuilder) WithAuth added in v0.1.0

func (o *KubeDBClientBuilder) WithAuth(auth *Auth) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithContext added in v0.1.0

func (*KubeDBClientBuilder) WithDatabaseName added in v0.3.0

func (o *KubeDBClientBuilder) WithDatabaseName(dbName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithDatabaseRef added in v0.1.0

func (o *KubeDBClientBuilder) WithDatabaseRef(db *dbapi.Database) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithPbPort added in v0.3.0

func (o *KubeDBClientBuilder) WithPbPort(listenPort int32) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithPod

func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithURL

type XormClient

type XormClient struct {
	*xorm.Engine
}

type XormClientList added in v0.1.0

type XormClientList struct {
	List  []*XormClient
	Mutex sync.Mutex
	WG    sync.WaitGroup
	// contains filtered or unexported fields
}

func GetXormClientList added in v0.1.0

func GetXormClientList(kc client.Client, pb *dbapi.PgBouncer, ctx context.Context, auth *Auth, dbName string, listenPort rune) (*XormClientList, error)

Jump to

Keyboard shortcuts

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