package
Version:
v0.1.0-alpha.2
Opens a new window with list of versions in this module.
Published: Feb 3, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type AppConfig struct {
Debug bool `mapstructure:"debug" yaml:"debug"`
LogLevel string `mapstructure:"log_level" yaml:"log_level"`
}
type Config struct {
fx.Out `yaml:"-"`
App AppConfig `mapstructure:"app" yaml:"app"`
Jwt JwtConfig `mapstructure:"jwt" yaml:"jwt"`
Db DbConfig `mapstructure:"db" yaml:"db"`
}
type DbConfig struct {
Dsn string `mapstructure:"dsn" yaml:"dsn"`
Migrate bool `mapstructure:"migrate" yaml:"migrate"`
}
type JwtConfig struct {
Secret string `mapstructure:"secret" yaml:"secret"`
AccessTokenTTL string `mapstructure:"access_token_ttl" yaml:"access_token_ttl"`
RefreshTokenTTL string `mapstructure:"refresh_token_ttl" yaml:"refresh_token_ttl"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.