config

package
v0.0.0-...-5b6618e Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Admin

func Admin() model.User

func AlertDb

func AlertDb() string

func Assets

func Assets() string

func Debug

func Debug() bool

func GetDb

func GetDb() (*database.DbConf, error)

func JwtSecret

func JwtSecret() []byte

func ListenerAddr

func ListenerAddr() string

Types

type AdminConfig

type AdminConfig struct {
	Username, Email, Password string
}

type SmtpConf

type SmtpConf struct {
	FromAddress string
	FromName    string
	Password    string
	Host        string
	Port        string
	Server      string
}

func GetMailConfig

func GetMailConfig() SmtpConf

Jump to

Keyboard shortcuts

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