Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConfigFile ¶
func DeleteConfigFile() error
func WriteConfigToFile ¶
func WriteConfigToFile(config ConfigData) error
Types ¶
type ConfigData ¶
type ConfigData struct { User string `toml:"user"` Token string `toml:"token"` TokenExpiry string `toml:"token_expiry"` RefreshToken string `toml:"refresh_token"` OrigIAT int64 `toml:"origIat"` RefreshTokenExpiry int64 `toml:"refresh_token_expiry"` RefreshTokenSetTime int64 `toml:"refresh_token_set_time"` }
func ReadConfig ¶
func ReadConfig() (ConfigData, error)
Click to show internal directories.
Click to hide internal directories.