config

package
v0.0.0-...-e8a9512 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 4 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 {
	HTTPPort          string            `mapstructure:"http_port"`
	DSN               string            `mapstructure:"db_connection_string"`
	CORS              cors              `mapstructure:"cors"`
	GormDebug         bool              `mapstructure:"gorm_debug"`
	DBAutoMigrate     bool              `mapstructure:"db_auto_migrate"`
	JWT               jwt               `mapstructure:"jwt"`
	AccessTokenCookie accessTokenCookie `mapstructure:"access_token_cookie"`
	SecretKey         string            `mapstructure:"secret_key"`
	BaseHost          string            `mapstructure:"base_host"`
}

func Load

func Load() *Config

Jump to

Keyboard shortcuts

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