Documentation
¶
Index ¶
Constants ¶
View Source
const ( TARGET_COMMUNITY = "community" TARGET_CLOUD = "cloud" )
Variables ¶
This section is empty.
Functions ¶
func WriteConfig ¶ added in v0.1.0
Types ¶
type CloudConfig ¶ added in v0.1.0
type CloudConfig struct {
Org string `toml:"org"`
Tenant string `toml:"tenant"`
Warehouse string `toml:"warehouse"`
Gateway string `toml:"gateway"`
Endpoint string `toml:"endpoint"`
Token *Token `toml:"token,omitempty"`
}
func (*CloudConfig) GetDSN ¶ added in v0.1.0
func (c *CloudConfig) GetDSN() (string, error)
type CommunityConfig ¶ added in v0.1.0
type CommunityConfig struct {
Host string `toml:"host"`
Port int `toml:"port"`
User string `toml:"user"`
Password string `toml:"password"`
Database string `toml:"database"`
SSL bool `toml:"ssl"`
Options map[string]string `toml:"options"`
}
func (*CommunityConfig) GetDSN ¶ added in v0.1.0
func (c *CommunityConfig) GetDSN() (string, error)
type Config ¶
type Config struct {
Target string `toml:"target"`
Cloud *CloudConfig `toml:"cloud,omitempty"`
Community *CommunityConfig `toml:"community,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.