Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

Package postgres implements the native PostgreSQL member runner.

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

SPDX-License-Identifier: Apache-2.0 Copyright 2026 The Karakoram Authors

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

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

func New

func New() *Runner

func (*Runner) Apply

func (e *Runner) Apply(ctx context.Context, n *agent.Node, c agentapi.MemberConfig) ([]string, error)

func (*Runner) Metrics

func (e *Runner) Metrics(ctx context.Context, n *agent.Node) []agent.Metric

func (*Runner) Name

func (*Runner) Name() string

func (*Runner) Processes

func (*Runner) Processes() []string

func (*Runner) Readiness

func (*Runner) Readiness(ctx context.Context, o agent.Options, args []string) error

func (*Runner) Routes

func (e *Runner) Routes(mux *http.ServeMux, n *agent.Node)

func (*Runner) RunBackground

func (e *Runner) RunBackground(ctx context.Context, n *agent.Node)

RunBackground checks actual postmaster identity, not frontend demand. In ProxySQL 3.0.11 async_ping does no socket I/O on idle PostgreSQL connections.

func (*Runner) Shutdown

func (e *Runner) Shutdown(ctx context.Context, n *agent.Node) error

Shutdown requests a planned handoff before Patroni or its local etcd voter is stopped. This path is shared by every backend; it never removes DCS members, deletes the leader key, or promotes PostgreSQL outside Patroni's safety checks.

func (*Runner) ShutdownBudget

func (e *Runner) ShutdownBudget() time.Duration

func (*Runner) SupportsCertificateReloadOnly

func (*Runner) SupportsCertificateReloadOnly() bool

SupportsCertificateReloadOnly is advertised on the generic agent API, whose identity is independent of the invalid native certificate being replaced.

func (*Runner) Version

func (e *Runner) Version(ctx context.Context) string

Jump to

Keyboard shortcuts

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