Documentation
¶
Overview ¶
Package config handles application configuration from multiple sources.
Index ¶
Constants ¶
View Source
const ( // DefaultHost is the default Pantheon API host DefaultHost = "terminus.pantheon.io" // DefaultPort is the default API port DefaultPort = 443 // DefaultProtocol is the default protocol DefaultProtocol = "https" // DefaultTimeout is the default timeout in seconds DefaultTimeout = 86400 // DefaultDateFormat is the default date format DefaultDateFormat = "2006-01-02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// API settings
Host string
Port int
Protocol string
Timeout int
// Paths
HomeDir string
CacheDir string
PluginsDir string
TokensDir string
SessionFile string
ConfigFile string
// Display settings
DateFormat string
// contains filtered or unexported fields
}
Config represents the application configuration
func (*Config) GetBaseURL ¶
GetBaseURL returns the full API base URL
Click to show internal directories.
Click to hide internal directories.