globals

package
v0.0.0-...-60955e0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SnowflakesEpoch uint64 = 1699567200000
)

Variables

View Source
var Db *sql.DB
View Source
var Logger *logrus.Logger

Functions

func SetupDb

func SetupDb(db *sql.DB) error

Types

type AppConfig

type AppConfig struct {
	SecretKey  string `json:"secret_key"`
	AppName    string `json:"app_name"`
	PgHost     string `json:"pghost"`
	PgPort     int    `json:"pgport"`
	PgUser     string `json:"pguser"`
	PgPassword string `json:"pgpassword"`
	PgDbname   string `json:"pgdbname"`
}
var Config AppConfig

Jump to

Keyboard shortcuts

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