config

package
v0.0.1-alpha.2 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 AppConfig

type AppConfig struct {
	Debug    bool   `mapstructure:"debug" yaml:"debug"`
	LogLevel string `mapstructure:"log_level" yaml:"log_level"`
}

type Config

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

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