Documentation ¶ Index ¶ func DefaultPath() (string, error) type Config func Load(path string) (*Config, string, error) func (c *Config) Profile(name string) Profile func (c *Config) Save(path string) error func (c *Config) SetProfile(name string, profile Profile) type Profile Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DefaultPath ¶ func DefaultPath() (string, error) Types ¶ type Config ¶ type Config struct { Profiles map[string]Profile `json:"profiles"` } func Load ¶ func Load(path string) (*Config, string, error) func (*Config) Profile ¶ func (c *Config) Profile(name string) Profile func (*Config) Save ¶ func (c *Config) Save(path string) error func (*Config) SetProfile ¶ func (c *Config) SetProfile(name string, profile Profile) type Profile ¶ type Profile struct { ClientID string `json:"client_id"` ClientSecret string `json:"client_secret"` RedirectURI string `json:"redirect_uri"` UserAgent string `json:"user_agent"` BaseURL string `json:"base_url"` } Source Files ¶ View all Source files config.go Click to show internal directories. Click to hide internal directories.