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