lib

package
v0.0.0-...-4ebaa52 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabase

func GetDatabase() *gorm.DB

func GetStore

func GetStore() *sessions.CookieStore

return a pointer to the cookie store

func LoadConfiguration

func LoadConfiguration()

func SetDatabase

func SetDatabase(database *gorm.DB)

func UUID

func UUID() string

Types

type AdminLogin

type AdminLogin struct {
	Username string
	Password string
}

type Configuration

type Configuration struct {
	AdminAccess      bool       `json:"adminAccess"`
	Port             string     `json:"port"`
	DatabaseName     string     `json:"databaseName"`
	DatabaseHost     string     `json:"databaseHost"`
	DatabasePort     string     `json:"databasePort"`
	DatabaseUser     string     `json:"databaseUser"`
	DatabasePass     string     `json:"databasePass"`
	AdminCredentials AdminLogin `json:"adminLogin"`
	RestAPIMode      bool       `json:"restApi"`
}

func GetConfiguration

func GetConfiguration() Configuration

Jump to

Keyboard shortcuts

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