controller

package
v0.0.0-...-677c301 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserData []*models.User

UserData - The collection of Users retained in memory as a slice of structs

Functions

func Create

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

Create - a New User

func Delete

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

Delete - a User

func HomeHandler

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

HomeHandler - Home page redirect view and 404 handle

func LoadData

func LoadData()

LoadData - Setup Data For Users

func NotFound

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

NotFound - 404 Handler

func Replace

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

Replace - a current User

func SetupUserHandler

func SetupUserHandler(handler *http.ServeMux)

SetupUserHandler - setup all the controller paths for Users

func Show

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

Show - a User

func Update

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

Update - a User

Types

This section is empty.

Jump to

Keyboard shortcuts

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