config

package
v0.0.0-...-6b7d37f Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV = &Env{}
View Source
var POSTGRES = &PostgresServer{}

Functions

func Init

func Init()

Types

type Env

type Env struct {
	PostgresHost     string
	PostgresPort     int
	PostgresUser     string
	PostgresPassword string
	PostgresDatabase string
	ApiPort          int
}

func (*Env) Initenv

func (env *Env) Initenv()

type PostgresServer

type PostgresServer struct {
	DB *pg.DB
}

func (*PostgresServer) ConnectToDB

func (ps *PostgresServer) ConnectToDB(env Env)

Jump to

Keyboard shortcuts

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