Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultAPIURL = "https://api.gora8.com"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
APIKey string `json:"api_key"`
APIURL string `json:"api_url"`
UserEmail string `json:"user_email"`
UserID string `json:"user_id"`
}
Config holds the persisted CLI configuration.
func Load ¶
Load reads the config from disk. Returns an empty config if the file does not exist yet (not an error).
func (*Config) IsAuthenticated ¶
IsAuthenticated returns true when an API key is present.
Click to show internal directories.
Click to hide internal directories.