package
Version:
v0.0.0-...-1b39580
Opens a new window with list of versions in this module.
Published: Oct 5, 2023
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Auth struct {
AuthMethod string `mapstructure:"method"`
APIKey string `mapstructure:"apiKey"`
BearerToken string `mapstructure:"bearerToken"`
BasicAuth BasicAuth `mapstructure:"basic"`
JWTToken JWTConfig `mapstructure:"jwt"`
}
type BasicAuth struct {
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
}
type JWTConfig struct {
Access Token `mapstructure:"accessToken"`
Refresh Token `mapstructure:"refreshToken"`
}
type Token struct {
PrivateKey string `mapstructure:"privateKey"`
PublicKey string `mapstructure:"publicKey"`
ExpiresIn time.Duration `mapstructure:"expiresIn"`
MaxAge int `mapstructure:"maxAge"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.