user

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CreatePath = "/user"
View Source
const DeletePath = "/user/{id}"
View Source
const (
	GetPath = "/user/{id}"
)
View Source
const UpdatePath = "/user/{id}"

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserController

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

func NewCreateController

func NewCreateController(
	logger logger.Logger,
	builder builder.User,
	service user.CRUD,
	response response.Responder,
) *CreateUserController

func (*CreateUserController) AddRoute

func (c *CreateUserController) AddRoute(router *mux.Router)

func (*CreateUserController) Create

type DeleteUserController

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

func NewDeleteController

func NewDeleteController(
	logger logger.Logger,
	builder builder.User,
	service user.CRUD,
	response response.Responder,
) *DeleteUserController

func (*DeleteUserController) AddRoute

func (c *DeleteUserController) AddRoute(router *mux.Router)

func (*DeleteUserController) Delete

type GetUserController

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

func NewGetController

func NewGetController(
	logger logger.Logger,
	builder builder.User,
	service user.CRUD,
	cacher cacher.Cacher,
	response response.Responder,
) *GetUserController

func (*GetUserController) AddRoute

func (c *GetUserController) AddRoute(router *mux.Router)

func (*GetUserController) Get

type UpdateController

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

func NewUpdateUserController

func NewUpdateUserController(
	logger logger.Logger,
	builder builder.User,
	service user.CRUD,
	response response.Responder,
) *UpdateController

func (*UpdateController) AddRoute

func (c *UpdateController) AddRoute(router *mux.Router)

func (*UpdateController) Update

func (c *UpdateController) Update(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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