Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppName = "auth-api"
View Source
var AppVersion = "0.1.0"
View Source
var BuildTime = "unknown"
View Source
var GitSHA1 = "unknown"
Functions ¶
Types ¶
type AuthURL ¶ added in v0.3.0
type AuthURL struct {
DefaultHost string `json:"default_host" toml:"default_host"`
DefaultPath string `json:"default_path" toml:"default_path"`
AllowHosts []string `json:"allow_hosts" toml:"allow_hosts"`
DefaultURL url.URL
}
func (*AuthURL) CheckNextUrl ¶ added in v0.3.0
type ConfigTpl ¶
type ConfigTpl struct {
Rand *rand.Rand
GlobalSignal context.Context
GlobalShutdown context.Context
Env string `json:"env" toml:"env"`
Home string `json:"home" toml:"home"`
Logger Logger `json:"log" toml:"log"`
Server Server `json:"server" toml:"server"`
Cookie Cookie `json:"cookie" toml:"cookie"`
AuthURL AuthURL `json:"auth_url" toml:"auth_url"`
Base Base `json:"base" toml:"base"`
Keys Keys `json:"keys" toml:"keys"`
Providers map[string]Provider `json:"providers" toml:"providers"`
OSS OSS `json:"oss" toml:"oss"`
COSEKeys struct {
CWTPub key.Key
Oauth2State key.Key
}
// contains filtered or unexported fields
}
ConfigTpl ...
var Config ConfigTpl
Config ...
func (*ConfigTpl) ReleaseJob ¶ added in v0.4.0
func (c *ConfigTpl) ReleaseJob()
type OSS ¶ added in v0.2.0
type OSS struct {
Bucket string `json:"bucket" toml:"bucket"`
Endpoint string `json:"endpoint" toml:"endpoint"`
AccessKeyId string `json:"access_key_id" toml:"access_key_id"`
AccessKeySecret string `json:"access_key_secret" toml:"access_key_secret"`
Prefix string `json:"prefix" toml:"prefix"`
UrlBase string `json:"url_base" toml:"url_base"`
}
Click to show internal directories.
Click to hide internal directories.