infra

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

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>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB(config *Config) func()

FUNCTION: DB setting

func InitServer

func InitServer(isDebug bool) *echo.Echo

FUNCTION: Web Server setting

Types

type Config

type Config struct {
	DebugMode bool `env:"DEBUG" default:"false"`
	Postgres  POSTGRES
}

STRUCT:

func LeadEnv

func LeadEnv() *Config

type POSTGRES

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

Jump to

Keyboard shortcuts

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