infra

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 9 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 NewFile

func NewFile(fileName string) (*os.File, func(), error)

FUNCTION: 書き込みファイルの準備(フォルダが無ければ作成する)

Types

type Config

type Config struct {
	SourceDB PostgresConfig
	DistDB   PostgresConfig
}

STRUCT:

func LeadEnv

func LeadEnv() *Config

FUNCTION:

type DbConnection

type DbConnection struct {
	SourceDB *sql.DB
	DistDB   *sql.DB
}

STRUCT:

func InitDB

func InitDB() (DbConnection, func())

FUNCTION: DB setting

type PostgresConfig

type PostgresConfig struct {
	User     string
	Password string
	Host     string
	Port     string
	Db       string
}

Jump to

Keyboard shortcuts

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