package
Version:
v1.0.0
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 Config struct {
fx.Out `yaml:"-"`
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.