config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthKey string = "lionelmessi"

	Port string = ":8080"

	DevelopmentDatabaseHost     string = "localhost"
	DevelopmentDatabaseDatabase string = "teleoma"
	DevelopmentDatabaseUser     string = "teleoma"
	DevelopmentDatabasePassword string = "teleoma"
)

Variables

This section is empty.

Functions

func GetMailsPath

func GetMailsPath() string

func GetSendGridApiKey

func GetSendGridApiKey() string

func IsCorsEnabled

func IsCorsEnabled() bool

func IsProd

func IsProd() bool

func IsStage

func IsStage() bool

func ShouldSendMails

func ShouldSendMails() bool

Types

type Database

type Database struct {
	Host     string
	Database string
	User     string
	Password string
}

func GetDatabase

func GetDatabase() Database

Jump to

Keyboard shortcuts

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