Documentation
¶
Overview ¶
Package conf writes and reads the Encore configuration file for the user.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthClient ¶
AuthClient creates an *http.Client that authenticates requests using the logged-in user.
Types ¶
type Config ¶
type Config struct { oauth2.Token Email string `json:"email"` WireGuard struct { PublicKey string `json:"pub,omitempty"` PrivateKey string `json:"priv,omitempty"` } `json:"wg,omitempty"` }
Config represents the stored Encore configuration.
func CurrentUser ¶
func OriginalUser ¶
type TokenSource ¶
type TokenSource struct {
// contains filtered or unexported fields
}
TokenSource implements oauth2.TokenSource by looking up the current logged in user's API Token. The zero value is ready to be used.
Click to show internal directories.
Click to hide internal directories.