Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Profiles map[string]Profile `yaml:"profiles"`
DefaultProfile string `yaml:"default_profile"`
}
Config holds all configuration profiles for Tusk.
type Profile ¶
type Profile struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Database string `yaml:"database"`
SSLMode string `yaml:"sslmode"`
URL string `yaml:"url"`
Readonly bool `yaml:"readonly"`
Color string `yaml:"color"`
RefreshInterval time.Duration `yaml:"refresh_interval"`
Rules []rules.RuleConfig `yaml:"rules"`
}
Profile represents a single PostgreSQL connection profile.
func (Profile) ConnectionString ¶
ConnectionString returns a PostgreSQL connection string for this profile. If URL is set directly, it is returned as-is. Otherwise, the string is assembled from the individual fields.
Click to show internal directories.
Click to hide internal directories.