user

package
v0.0.0-...-9b3ca49 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 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 User

type User struct {
	ID           int       `db:"id" json:"id"`
	UserName     string    `db:"username" json:"username"` // タグを修正
	Email        string    `db:"email" json:"email"`
	PasswordHash string    `db:"password_hash" json:"password_hash"`
	CreatedAt    time.Time `db:"created_at" json:"created_at"`
	UpdatedAt    time.Time `db:"updated_at" json:"updated_at"`
}

type UserHandler

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

func NewUserHandler

func NewUserHandler(db db.Database, cache redis.Storage) *UserHandler

func (*UserHandler) DeleteUserHandler

func (h *UserHandler) DeleteUserHandler(c *fiber.Ctx) error

DELETE /user/:id

func (*UserHandler) GetUserHandler

func (h *UserHandler) GetUserHandler(c *fiber.Ctx) error

GET /user/id

func (*UserHandler) GetUsersHandler

func (h *UserHandler) GetUsersHandler(c *fiber.Ctx) error

GET /users

func (*UserHandler) PostUserHandler

func (h *UserHandler) PostUserHandler(c *fiber.Ctx) error

POST /user/:id

func (*UserHandler) PutUserHandler

func (h *UserHandler) PutUserHandler(c *fiber.Ctx) error

PUT /user

Jump to

Keyboard shortcuts

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