postgres

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

type Postgres struct {
	// Name of the script source
	Name string `json:"name" yaml:"name" hcl:"name,label"`
	// Host value
	Host string `json:"host" yaml:"host" hcl:"host"`
	// Port value
	Port int `json:"port" yaml:"port" hcl:"port"`
	// Username value
	Username string `json:"username" yaml:"username" hcl:"username"`
	// Password value
	Password string `json:"password" yaml:"password" hcl:"password"`
	// Database value
	Database string `json:"database" yaml:"database" hcl:"database"`
	// SSLMode value
	SSLMode string `json:"sslMode" yaml:"sslMode" hcl:"sslMode,optional"`
	// SSLCertPath value
	SSLCertPath string `json:"sslCertPath" yaml:"sslCertPath" hcl:"sslCertPath,optional"`
	// Timeout value
	Timeout int `json:"timeout" yaml:"timeout" hcl:"timeout,optional"`
	// Query is SQL query for scripts select
	Query string `json:"query" yaml:"query" hcl:"query"`
}

Postgres script source config

func (Postgres) Validate

func (cfg Postgres) Validate() error

Validate config

Jump to

Keyboard shortcuts

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