Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigFileNotFound = errors.New("fing config file not found")
)
Functions ¶
func ReadAppConfig ¶
ReadAppConfig reads config file from path
func WriteAppConfig ¶
WriteAppConfig writes config file to path
func WriteAuthConfig ¶
func WriteAuthConfig(cfg *AuthConfig) error
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Token string `json:"token"`
Email string `json:"email"`
LastCheckedAt time.Time `json:"last_checked_at"`
}
func ReadAuthConfig ¶
func ReadAuthConfig() (*AuthConfig, error)
Click to show internal directories.
Click to hide internal directories.