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

pgbouncer

package
v0.324.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmd

func Cmd(ch *cmdutil.Helper) *cobra.Command

Cmd manages dedicated PgBouncers for Postgres branches.

func CreateCmd

func CreateCmd(ch *cmdutil.Helper) *cobra.Command

CreateCmd creates a dedicated PgBouncer.

func DeleteCmd

func DeleteCmd(ch *cmdutil.Helper) *cobra.Command

DeleteCmd deletes a dedicated PgBouncer by name.

func ListCmd

func ListCmd(ch *cmdutil.Helper) *cobra.Command

ListCmd lists dedicated PgBouncers for a branch.

func ResizeCancelCmd

func ResizeCancelCmd(ch *cmdutil.Helper) *cobra.Command

ResizeCancelCmd cancels unfinished resize requests for a PgBouncer.

func ResizeCmd

func ResizeCmd(ch *cmdutil.Helper) *cobra.Command

ResizeCmd changes a dedicated PgBouncer's size, replicas, target, or parameters.

func ResizeStatusCmd

func ResizeStatusCmd(ch *cmdutil.Helper) *cobra.Command

ResizeStatusCmd shows the most recent resize request for a PgBouncer.

func ShowCmd

func ShowCmd(ch *cmdutil.Helper) *cobra.Command

ShowCmd shows a dedicated PgBouncer by name.

Types

type PgBouncer

type PgBouncer struct {
	ID              string `header:"id" json:"id"`
	Name            string `header:"name" json:"name"`
	Target          string `header:"target" json:"target"`
	Size            string `header:"size" json:"size"`
	ReplicasPerCell int    `header:"replicas_per_cell" json:"replicas_per_cell"`
	Actor           string `header:"actor" json:"actor"`
	CreatedAt       int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt       int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

PgBouncer is the human/JSON/CSV view of a dedicated PgBouncer.

func (*PgBouncer) MarshalCSVValue

func (b *PgBouncer) MarshalCSVValue() interface{}

func (*PgBouncer) MarshalJSON

func (b *PgBouncer) MarshalJSON() ([]byte, error)

type PgBouncerResize

type PgBouncerResize struct {
	ID              string `header:"id" json:"id"`
	Bouncer         string `header:"bouncer" json:"bouncer"`
	State           string `header:"state" json:"state"`
	Size            string `header:"size" json:"size"`
	PreviousSize    string `header:"previous_size" json:"previous_size"`
	Target          string `header:"target" json:"target"`
	ReplicasPerCell int    `header:"replicas_per_cell" json:"replicas_per_cell"`
	Actor           string `header:"actor" json:"actor"`
	CreatedAt       int64  `header:"created_at,timestamp(ms|utc|human)" json:"created_at"`
	UpdatedAt       int64  `header:"updated_at,timestamp(ms|utc|human)" json:"updated_at"`
	// contains filtered or unexported fields
}

PgBouncerResize is the human/JSON/CSV view of a bouncer resize request.

func (*PgBouncerResize) MarshalCSVValue

func (r *PgBouncerResize) MarshalCSVValue() interface{}

func (*PgBouncerResize) MarshalJSON

func (r *PgBouncerResize) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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