Documentation
¶
Overview ¶
Package config handle user credentials and config fetching/saving
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PathCredentialsFile = ".config/gira/credentials.toml" PathLogsDir = ".config/gira/logs/" )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
General GeneralConfig `toml:"general"`
Credentials CredentialsConfig `toml:"credentials"`
}
Config represents the application configuration
type CredentialsConfig ¶ added in v0.1.1
type CredentialsConfig struct {
Email string `toml:"email"`
Secret string `toml:"secret"`
Domain string `toml:"domain"`
}
CredentialsConfig holds user credentials
type FirstTimeError ¶ added in v0.1.1
type FirstTimeError struct {
Message string
}
func (*FirstTimeError) Error ¶ added in v0.1.1
func (e *FirstTimeError) Error() string
type GeneralConfig ¶ added in v0.1.1
type GeneralConfig struct {
Debug bool `toml:"debug"`
}
GeneralConfig holds general application settings
Click to show internal directories.
Click to hide internal directories.