config

package
v0.0.0-...-97d4abd Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PprofAddr string

Functions

This section is empty.

Types

type DbConfig

type DbConfig struct {
	DatabaseName string         `yaml:"database_name"`
	Address      string         `yaml:"address"`
	Username     string         `yaml:"username"`
	Password     string         `yaml:"password"`
	Database     string         `yaml:"database"`
	NumConns     uint16         `yaml:"num_conns"`
	MaxLifetime  *time.Duration `yaml:"conn_max_lifetime"`
	ReadReplicas []string       `yaml:"read_replicas"`
}
var Database DbConfig

type VirtualPg

type VirtualPg struct {
	Listen                string `yaml:"listen"`
	Username              string `yaml:"username"`
	Password              string `yaml:"password"`
	Database              string `yaml:"database"`
	ProxyApplicationNames bool   `yaml:"proxy_application_names"`
	ClearApplicationNames bool   `yaml:"clear_application_names"`
}
var Virtual VirtualPg

Jump to

Keyboard shortcuts

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