Documentation ¶
Index ¶
Constants ¶
View Source
const ( Auth command = iota Run )
Variables ¶
This section is empty.
Functions ¶
func ReadCredentials ¶
func ReadCredentials(c Config) map[string]Credential
func WriteConfig ¶
func WriteConfig(c Config)
func WriteCredentials ¶
func WriteCredentials(c Config, credentials map[string]Credential)
Types ¶
type Config ¶
type Config struct { AppID string `yaml:"app_id"` AppSecret string `yaml:"app_secret"` ServeAddress string `yaml:"serve_address"` RedirectURI string `yaml:"redirect_uri"` CredentialPath string `yaml:"credential_path"` Users map[string]User // contains filtered or unexported fields }
func CommandLine ¶
func CommandLine() (Config, command)
func ReadConfig ¶
type Credential ¶
Click to show internal directories.
Click to hide internal directories.