args

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package args contains the argument list, defined as a struct, along with a method that validates passed-in args

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgumentList

type ArgumentList struct {
	sdkArgs.DefaultArgumentList
	Username               string `default:"" help:"The username for the PostgreSQL database"`
	Password               string `default:"" help:"The password for the specified username"`
	Hostname               string `default:"localhost" help:"The PostgreSQL hostname to connect to"`
	Database               string `default:"postgres" help:"The PostgreSQL database name to connect to"`
	Port                   string `default:"5432" help:"The port to connect to the PostgreSQL database"`
	CollectionList         string `` /* 244-byte string literal not displayed */
	EnableSSL              bool   `default:"false" help:"If true will use SSL encryption, false will not use encryption"`
	TrustServerCertificate bool   `` /* 141-byte string literal not displayed */
	Pgbouncer              bool   `default:"false" help:"Collects metrics from PgBouncer instance. Assumes connection is through PgBouncer."`
	SSLRootCertLocation    string `default:"" help:"Absolute path to PEM encoded root certificate file"`
	SSLCertLocation        string `default:"" help:"Absolute path to PEM encoded client cert file"`
	SSLKeyLocation         string `default:"" help:"Absolute path to PEM encoded client key file"`
	Timeout                string `default:"10" help:"Maximum wait for connection, in seconds. Set 0 for no timeout"`
	CustomMetricsQuery     string `` /* 165-byte string literal not displayed */
	CustomMetricsConfig    string `default:"" help:"YAML configuration with one or more custom SQL queries to collect"`
	CollectDbLockMetrics   bool   `` /* 155-byte string literal not displayed */
	CollectBloatMetrics    bool   `default:"true" help:"Enable collecting bloat metrics which can be performance intensive"`
	ShowVersion            bool   `default:"false" help:"Print build information and exit"`
}

ArgumentList struct that holds all PostgreSQL arguments

func (ArgumentList) Validate

func (al ArgumentList) Validate() error

Validate validates PostgreSQl arguments

Jump to

Keyboard shortcuts

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