app

package
v0.0.0-...-8e57ba9 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Development = "development"
	Test        = "test"
	Production  = "production"
)

Variables

This section is empty.

Functions

func BuildTemplateCache

func BuildTemplateCache() (map[string]*template.Template, error)

func GetPool

func GetPool() *pgxpool.Pool

func GetRootDir

func GetRootDir() (string, error)

func GetSQLDB

func GetSQLDB() *sql.DB

func GetSession

func GetSession() *scs.SessionManager

func GetTemplates

func GetTemplates() map[string]*template.Template

func InitDB

func InitDB() error

func InitEnv

func InitEnv() error

func InitSessionManager

func InitSessionManager()

func Migrate

func Migrate() error

Types

type Env

type Env struct {
	AppEnv      string
	Port        string
	DatabaseURL string
	Seed        bool
}

func GetEnv

func GetEnv() *Env

type QueryExe

type QueryExe struct {
	QueryStr   string
	QueryArgs  []any
	ScanArgs   []any
	Model      any
	ModelSlice *[]any
}

func (*QueryExe) Exec

func (x *QueryExe) Exec() error

func (*QueryExe) Query

func (x *QueryExe) Query() error

func (*QueryExe) QueryRow

func (x *QueryExe) QueryRow() error

Jump to

Keyboard shortcuts

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