config

package
v0.0.0-...-7aa1237 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDB

func NewDB(dbType, connStr string) *sqlx.DB

func SessionSecret

func SessionSecret() []byte

func SetupGlobalConfig

func SetupGlobalConfig(c Config)

Types

type Config

type Config struct {
	Version Version
	Db      *sqlx.DB
}

func GetConfigs

func GetConfigs() *Config

func (*Config) GetVersionString

func (c *Config) GetVersionString() string

type Version

type Version struct {
	Version string
	Commit  string
	DateStr string
}

Jump to

Keyboard shortcuts

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