Documentation
¶
Index ¶
- type EntityRequestController
- func (h *EntityRequestController[e]) HandleCreateEntityRequest(w http.ResponseWriter, r *http.Request)
- func (h *EntityRequestController[e]) HandleDeleteEntityByIdRequest(w http.ResponseWriter, r *http.Request)
- func (h *EntityRequestController[e]) HandleGetAllEntitiesRequest(w http.ResponseWriter, r *http.Request)
- func (h *EntityRequestController[e]) HandleGetEntityByIdRequest(w http.ResponseWriter, r *http.Request)
- func (h *EntityRequestController[e]) HandleUpdateEntityRequest(w http.ResponseWriter, r *http.Request)
- type EntityService
- type ResponseHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityRequestController ¶
type EntityRequestController[e any] struct { // contains filtered or unexported fields }
func NewEntityRequestController ¶
func NewEntityRequestController[e any](responseHandler ResponseHandler, entityService EntityService[e]) *EntityRequestController[e]
func (*EntityRequestController[e]) HandleCreateEntityRequest ¶
func (h *EntityRequestController[e]) HandleCreateEntityRequest(w http.ResponseWriter, r *http.Request)
func (*EntityRequestController[e]) HandleDeleteEntityByIdRequest ¶
func (h *EntityRequestController[e]) HandleDeleteEntityByIdRequest(w http.ResponseWriter, r *http.Request)
func (*EntityRequestController[e]) HandleGetAllEntitiesRequest ¶
func (h *EntityRequestController[e]) HandleGetAllEntitiesRequest(w http.ResponseWriter, r *http.Request)
func (*EntityRequestController[e]) HandleGetEntityByIdRequest ¶
func (h *EntityRequestController[e]) HandleGetEntityByIdRequest(w http.ResponseWriter, r *http.Request)
func (*EntityRequestController[e]) HandleUpdateEntityRequest ¶
func (h *EntityRequestController[e]) HandleUpdateEntityRequest(w http.ResponseWriter, r *http.Request)
type EntityService ¶
type ResponseHandler ¶
type ResponseHandler interface {
HandleResponseObject(w http.ResponseWriter, response interface{}, err error)
}
Click to show internal directories.
Click to hide internal directories.