package
module
Version:
v0.0.0-...-933e0a6
Opens a new window with list of versions in this module.
Published: Apr 18, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Collect leads via a form on a website and manage them by simple admin panel.
Not ready for production!
Environment Variables
Name |
Is Required |
Default Value |
APP_PORT |
no |
8000 |
APP_BASE_URL |
no |
http://localhost |
DEBUG_MODE |
no |
false |
HEALTH_ENDPOINT |
no |
/health |
TEMPLATE_DIR |
no |
./src/views |
FORM_CONFIG_PATH |
no |
./form.config.yaml |
STATIC_FILES_DIR |
no |
./src/assets |
Documentation
¶
func ErrorPageHandler(c echo.Context) error
ErrorPageHandler renders error page
func HTTPErrorHandler(err error, c echo.Context)
HTTPErrorHandler
func NewRenderer(templatesDir string) (echo.Renderer, error)
NewRenderer is a factory function,
return a new instanccec of the echo.Renderer interface implementation
func PageHandler(c echo.Context) error
PageHandler renders html pages,
based on html files from templates directory
type FormConfig struct {
}
FormConfig struct
Configuration of the lead generation form
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.