pgstress

package
v0.0.0-...-9d75bea Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Connected    int64
	Active       int64
	Errors       int64
	Restarts     int64
	WorkersReady int64
}

type Options

type Options struct {
	Host           string
	Port           string
	User           string
	Password       string
	Database       string
	SSLMode        string
	Connections    int
	KeepAlive      time.Duration
	RestartCheck   time.Duration
	ConnectTimeout time.Duration
	Duration       time.Duration
	Verbose        bool
}

Options defines the configuration for the pgstress runner.

func (Options) Validate

func (o Options) Validate() error

type Runner

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

func NewRunner

func NewRunner(opts Options) (*Runner, error)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

func (*Runner) Summary

func (r *Runner) Summary() Metrics

Jump to

Keyboard shortcuts

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