package
Version:
v0.0.0-...-8101a8f
Opens a new window with list of versions in this module.
Published: Dec 23, 2022
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AuthnSettings struct {
SessionTTL time.Duration `env:"AUTHN_SESSION_TTL" envDefault:"1h"`
CookieDomain string `env:"AUTHN_COOKIE_DOMAIN"`
CookieName string `env:"AUTHN_COOKIE_NAME"`
CookieSigningKey string `env:"AUTHN_COOKIE_SIGNING_KEY"`
}
type AuthzSettings struct {
ChannelIDs []string `env:"AUTHZ_CHANNEL_IDS" envSeparator:","`
CacheTTL time.Duration `env:"AUTHZ_CACHE" envDefault:"5m"`
}
type BotSettings struct {
Name string `env:"BOT_NAME"`
Token string `env:"BOT_TOKEN"`
}
type SigninSettings struct {
RedirectCallbackURL string `env:"SIGNIN_REDIRECT_CALLBACK_URL"`
SigninURL string `env:"SIGNIN_URL"`
AfterSigninURL string `env:"SIGNIN_AFTER_SIGNIN_URL"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.