user

package
v0.0.0-...-a16b4b9 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(service userService) Handler

func (Handler) CreateUser

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

func (Handler) DeleteUser

func (h Handler) DeleteUser(w http.ResponseWriter, r *http.Request)

func (Handler) ListUsers

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

func (Handler) UpdateUser

func (h Handler) UpdateUser(w http.ResponseWriter, r *http.Request)

TODO: Return updated user

type ListUserResponse

type ListUserResponse struct {
	Users postgresutils.Page[user.User] `json:"users"`
}

TODO: Add pagination

Jump to

Keyboard shortcuts

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