controllers

package
v0.0.0-...-ed61a54 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package controllers define all the controllers

Index

Constants

This section is empty.

Variables

View Source
var (

	// TemplateData closure variable to call in each show function
	TemplateData func(string) map[string]interface{} = templateData()
)

Functions

func GetUsers

func GetUsers() []string

GetUser See how to implement

func Login

func Login(w http.ResponseWriter, r *http.Request)

Login makes a safe login

func ShowBeads

func ShowBeads(w http.ResponseWriter, r *http.Request)

ShowBeads Executes Beads template

func ShowBox

func ShowBox(w http.ResponseWriter, r *http.Request)

ShowBox Executes box template

func ShowCustomers

func ShowCustomers(w http.ResponseWriter, r *http.Request)

ShowCustomers Executes customers template

func ShowDashboard

func ShowDashboard(w http.ResponseWriter, r *http.Request)

ShowDashboard Executes a dashboard template

func ShowLogin

func ShowLogin(w http.ResponseWriter, r *http.Request)

ShowLogin Executes login template

func ShowProducts

func ShowProducts(w http.ResponseWriter, r *http.Request)

ShowProducts Executes products template

func ShowQuickSale

func ShowQuickSale(w http.ResponseWriter, r *http.Request)

ShowQuickSale Executes quick sale template

func ShowStatics

func ShowStatics(w http.ResponseWriter, r *http.Request)

ShowStatics Executes statics template

func ShowUsers

func ShowUsers(w http.ResponseWriter, r *http.Request)

ShowUsers Executes user template

Types

This section is empty.

Jump to

Keyboard shortcuts

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