db_module

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Unlicense Imports: 5 Imported by: 0

README

DB module


Simple module to connect to the DB use in mecuate

  • this module can be integrated to all libraries internal for MecuateAstrophytum with minimal impact
  • this module is intended to be used whithin GO version 18.1.x

install the module

go get github.com/Mecuate/db_module

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HOST, PORT, USER, PASSWORD, DBNAME, SSLMODE string
)
View Source
var Version versionType = "v0.0.1"

Functions

func Conn

func Conn()

Types

type EnvConfs

type EnvConfs struct {
	HOST     string `required:"true" split_words:"true"`
	PORT     string `required:"true" split_words:"true"`
	USER     string `required:"true" split_words:"true"`
	PASSWORD string `required:"true" split_words:"true"`
	DBNAME   string `required:"true" split_words:"true"`
}

type RecieverFunc

type RecieverFunc func(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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