Documentation
¶
Index ¶
- func Error(w http.ResponseWriter, r *http.Request, message any, code int)
- func Response(w http.ResponseWriter, r *http.Request, v any, status int)
- type AddProductRequest
- type CreateReceptionRequest
- type ErrorMessage
- type LoginHandler
- type PointHandler
- func (h *PointHandler) AddProduct(w http.ResponseWriter, r *http.Request)
- func (h *PointHandler) CloseReception(w http.ResponseWriter, r *http.Request)
- func (h *PointHandler) CreatePoint(w http.ResponseWriter, r *http.Request)
- func (h *PointHandler) CreateReception(w http.ResponseWriter, r *http.Request)
- func (h *PointHandler) DeleteProduct(w http.ResponseWriter, r *http.Request)
- func (h *PointHandler) GetPointsList(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddProductRequest ¶
type AddProductRequest struct { Point uuid.UUID `json:"pvzId"` ProductType point.ProductType `json:"type"` }
type CreateReceptionRequest ¶
type ErrorMessage ¶
type ErrorMessage struct {
Message string `json:"message,omitempty"`
}
type LoginHandler ¶
type LoginHandler struct {
// contains filtered or unexported fields
}
func NewLogin ¶
func NewLogin(auth auth.Authorizer, users user.Repository, logger *zap.SugaredLogger) *LoginHandler
func (*LoginHandler) Dummy ¶
func (h *LoginHandler) Dummy(w http.ResponseWriter, r *http.Request)
func (*LoginHandler) Login ¶
func (h *LoginHandler) Login(w http.ResponseWriter, r *http.Request)
func (*LoginHandler) Register ¶
func (h *LoginHandler) Register(w http.ResponseWriter, r *http.Request)
type PointHandler ¶
type PointHandler struct {
// contains filtered or unexported fields
}
func NewPoint ¶
func NewPoint(auth auth.Authorizer, points point.Repository, logger *zap.SugaredLogger) *PointHandler
func (*PointHandler) AddProduct ¶
func (h *PointHandler) AddProduct(w http.ResponseWriter, r *http.Request)
func (*PointHandler) CloseReception ¶
func (h *PointHandler) CloseReception(w http.ResponseWriter, r *http.Request)
func (*PointHandler) CreatePoint ¶
func (h *PointHandler) CreatePoint(w http.ResponseWriter, r *http.Request)
func (*PointHandler) CreateReception ¶
func (h *PointHandler) CreateReception(w http.ResponseWriter, r *http.Request)
func (*PointHandler) DeleteProduct ¶
func (h *PointHandler) DeleteProduct(w http.ResponseWriter, r *http.Request)
func (*PointHandler) GetPointsList ¶
func (h *PointHandler) GetPointsList(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.