lfm

package module
v0.0.0-...-933e0a6 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

The Leads Form Manager

Collect leads via a form on a website and manage them by simple admin panel.

Deploy to DO


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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorPageHandler

func ErrorPageHandler(c echo.Context) error

ErrorPageHandler renders error page

func HTTPErrorHandler

func HTTPErrorHandler(err error, c echo.Context)

HTTPErrorHandler

func NewRenderer

func NewRenderer(templatesDir string) (echo.Renderer, error)

NewRenderer is a factory function, return a new instanccec of the echo.Renderer interface implementation

func PageHandler

func PageHandler(c echo.Context) error

PageHandler renders html pages, based on html files from templates directory

Types

type FormConfig

type FormConfig struct {
}

FormConfig struct Configuration of the lead generation form

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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