Discover Packages
github.com/teru-0529/go-dbreset-api
infra
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Sep 7, 2024
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>
Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>
Copyright © 2024 Teruaki Sato <andrea.pirlo.0529@gmail.com>
func InitDB(config *Config ) func()
FUNCTION: DB setting
func InitServer(isDebug bool ) *echo.Echo
FUNCTION: Web Server setting
type Config struct {
DebugMode bool `env:"DEBUG" default:"false"`
Postgres POSTGRES
}
STRUCT:
type POSTGRES struct {
User string `env:"POSTGRES_USER"`
Password string `env:"POSTGRES_PASSWORD"`
Hostname string `env:"POSTGRES_HOST_NAME"`
Port string `env:"POSTGRES_PORT"`
Db string `env:"POSTGRES_DB"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.