middleware

package
v0.0.0-...-ce42dd2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDb

func ConnectDb() (*gorm.DB, error)

connect to database

func DeleteUserHandler

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

delete user <identifier>

func GetAllUsersHandler

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

read data of all users

func GetUserHandler

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

read data of one user <identifier>

func PostDataHandler

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

book-in new user

func UpdateUserHandler

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

update user data

Types

This section is empty.

Jump to

Keyboard shortcuts

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