infra

package
v0.0.0-...-2f30d10 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoMigrate

func DoMigrate(migrationsFS embed.FS)

Types

type Config

type Config struct {
	EnvType   string `value:"prod"`
	MySQLHost string `value:"127.0.0.1"`
	MySQLPort string `value:"3306"`
	MySQLUser string `value:"vm"`
	MySQLPass string `value:"vm123456"`
	MySQLDb   string `value:"vm"`

	LogFileDir    string `value:"."`
	LogFileName   string `value:"mix.log"`
	LogLevel      string `value:"info"`
	DBLogLevel    string `value:"info"`
	JwtSigningKey string `` // command: openssl rand -base64 128
	/* 180-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Config) DSN

func (cfg *Config) DSN() string

func (*Config) Init

func (cfg *Config) Init()

Jump to

Keyboard shortcuts

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