Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigDecoderOptions ¶
func ConfigDecoderOptions(config *mapstructure.DecoderConfig)
ConfigDecoderOptions enables necessary mapstructure decode hook functions
Types ¶
type CleanupConfig ¶ added in v1.1.0
type Config ¶
type Config struct { LogLevel log.Level `mapstructure:"log_level"` PostgreSQL struct { Host string User string Password string PasswordFile string `mapstructure:"password_file"` Database string TimeZone string DSNExtra string `mapstructure:"dsn_extra"` SoftDelete bool `mapstructure:"soft_delete"` } Mail email.Config SMTP email.SMTPConfig HTTP struct { ListenAddress string `mapstructure:"listen_address"` CORS struct { AllowedOrigins []string `mapstructure:"allowed_origins"` } } JWT JWTConfig RootPassword string `mapstructure:"root_password"` RootPasswordFile string `mapstructure:"root_password_file"` ReservedUsernames []string `mapstructure:"reserved_usernames"` Cleanup CleanupConfig MA1SD MA1SDConfig }
Config defines iamd's configuration
func (*Config) JWTKeyFunc ¶
func (c *Config) JWTKeyFunc() jwt.Keyfunc
JWTKeyFunc returns a function that will return the JWT key (for use with `jwt` package)
func (*Config) ReadSecrets ¶
ReadSecrets loads values for secret config options from files
type MA1SDConfig ¶ added in v1.0.0
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the iamd server
func (*Server) CleanupUnverified ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.