handler

package
v0.0.0-...-2387267 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *sql.DB

Database instance

Functions

func AddUser

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

AddUser persists a new user in the database

func ListUsers

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

ListUsers returns all users from the database

func RemoveUser

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

RemoveUser deletes a user from the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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