framework

package
v0.9.7 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SERVER_PORT                = 5000
	WWW_DIR                    = "./www/"
	STATIC_DIRECTORY           = WWW_DIR + "static/"
	CLI_TEMPLATES_FOLDER       = "./framework/_templates/"
	MODELS_FOLDER              = "./framework/database/models/"
	MIGRATIONS_FOLDER          = "./framework/database/migrations/"
	FRAMEWORK_TEMPLATES_FOLDER = "./framework/templates/"

	// It is describes how you will point to static directory in templates
	TEMPLATE_STATIC_PATH                     = "/static/"
	TEMPLATE_DIR                             = WWW_DIR + "templates/"
	TEMPLATE_EXT                             = ".html"
	PANIC_RECOVERY_PRODUCTION_ERROR_TEMPLATE = ""

	// Database:
	// DB can be one of these values: sqlite3, mysql, postgres. In case of sqlite3 only DB and DB_NAME required
	DB          = "sqlite3"
	DB_NAME     = "database.sqlite3"
	DB_USER     = ""
	DB_PASSWORD = ""
	DB_URL      = ""
	DB_PORT     = 0

	// Mail smtp
	// your mail
	FROM                  = ""
	MAIL_USER             = ""
	MAIL_PASSWORD         = ""
	MAIL_ADDRESS          = ""
	MAIL_ADDRES_WITH_PORT = ""

	// optional
	DEV = true
)

config.go is a global config for framework

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
database
srm
security
key

Jump to

Keyboard shortcuts

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