config

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	fx.Out `yaml:"-"`

	Jwt JwtConfig `mapstructure:"jwt" yaml:"jwt"`
	Db  DbConfig  `mapstructure:"db" yaml:"db"`
}

type DbConfig

type DbConfig struct {
	Dsn     string `mapstructure:"dsn" yaml:"dsn"`
	Migrate bool   `mapstructure:"migrate" yaml:"migrate"`
}

type JwtConfig

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL