handler

package
v0.0.0-...-69c3572 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIngredients

func GetIngredients(pool *pgxpool.Pool) httptreemux.HandlerFunc

func GetToken

func GetToken(secret []byte) httptreemux.HandlerFunc

Types

type TokenClaims

type TokenClaims struct {
	jwt.RegisteredClaims
	UserID uuid.UUID `json:"user_id"`
}

type UserIdHandler

type UserIdHandler func(w http.ResponseWriter, r *http.Request, params map[string]string, userID uuid.UUID)

func CreateOrder

func CreateOrder(pool *pgxpool.Pool) UserIdHandler

func DeleteOrder

func DeleteOrder(pool *pgxpool.Pool) UserIdHandler

func GetOrder

func GetOrder(pool *pgxpool.Pool) UserIdHandler

func GetOrders

func GetOrders(pool *pgxpool.Pool) UserIdHandler

Jump to

Keyboard shortcuts

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