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
Click to show internal directories.
Click to hide internal directories.