api

package module
v0.0.0-...-0a23da7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

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

CreateUser is a function that creates a new user

func GetUser

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

func GetUsers

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

func Login

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

func UserHandler

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

UserHandler is a function that handles user requests depending on the HTTP method POST: Create a new user GET: Get a user by id All other methods are not allowed

Types

type UserDbContextKey

type UserDbContextKey string

Jump to

Keyboard shortcuts

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