Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHeaders ¶
func StoreAuth ¶
func StoreAuth(authConfig *AuthConfig) error
Types ¶
type AuthConfig ¶
type AuthConfig struct {
AuthToken string `json:"authentication_token"`
Email string `json:"email"`
FirstName string `json:"first_name"`
LastName string `json:"last_name"`
UserName string `json:"username"`
}
var (
Config *AuthConfig
)
func Authenticate ¶
func Authenticate() (*AuthConfig, error)
func LoadAuth ¶
func LoadAuth() (*AuthConfig, error)
Click to show internal directories.
Click to hide internal directories.