Documentation ¶
Index ¶
- func MarshalCreateResponse(res *insurancerequirement_s.InsuranceRequirement, w http.ResponseWriter)
- func MarshalDetailResponse(res *insurancerequirement_s.InsuranceRequirement, w http.ResponseWriter)
- func MarshalListAsSelectOptionResponse(res []*insurancerequirement_s.InsuranceRequirementAsSelectOption, ...)
- func MarshalListResponse(res *insurancerequirement_s.InsuranceRequirementPaginationListAndCountResult, ...)
- func MarshalUpdateResponse(res *insurancerequirement_s.InsuranceRequirement, w http.ResponseWriter)
- func UnmarshalCreateRequest(ctx context.Context, r *http.Request) (*insurancerequirement_c.InsuranceRequirementCreateRequestIDO, error)
- func UnmarshalUpdateRequest(ctx context.Context, r *http.Request) (*insurancerequirement_c.InsuranceRequirementUpdateRequestIDO, error)
- type Handler
- func (h *Handler) Create(w http.ResponseWriter, r *http.Request)
- func (h *Handler) DeleteByID(w http.ResponseWriter, r *http.Request, id string)
- func (h *Handler) GetByID(w http.ResponseWriter, r *http.Request, id string)
- func (h *Handler) List(w http.ResponseWriter, r *http.Request)
- func (h *Handler) ListAsSelectOptions(w http.ResponseWriter, r *http.Request)
- func (h *Handler) UpdateByID(w http.ResponseWriter, r *http.Request, id string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCreateResponse ¶
func MarshalCreateResponse(res *insurancerequirement_s.InsuranceRequirement, w http.ResponseWriter)
func MarshalDetailResponse ¶
func MarshalDetailResponse(res *insurancerequirement_s.InsuranceRequirement, w http.ResponseWriter)
func MarshalListAsSelectOptionResponse ¶
func MarshalListAsSelectOptionResponse(res []*insurancerequirement_s.InsuranceRequirementAsSelectOption, w http.ResponseWriter)
func MarshalListResponse ¶
func MarshalListResponse(res *insurancerequirement_s.InsuranceRequirementPaginationListAndCountResult, w http.ResponseWriter)
func MarshalUpdateResponse ¶
func MarshalUpdateResponse(res *insurancerequirement_s.InsuranceRequirement, w http.ResponseWriter)
func UnmarshalCreateRequest ¶
func UnmarshalCreateRequest(ctx context.Context, r *http.Request) (*insurancerequirement_c.InsuranceRequirementCreateRequestIDO, error)
func UnmarshalUpdateRequest ¶
func UnmarshalUpdateRequest(ctx context.Context, r *http.Request) (*insurancerequirement_c.InsuranceRequirementUpdateRequestIDO, error)
Types ¶
type Handler ¶
type Handler struct { Logger *slog.Logger Controller insurancerequirement_c.InsuranceRequirementController }
Handler Creates http request handler
func NewHandler ¶
func NewHandler(loggerp *slog.Logger, c insurancerequirement_c.InsuranceRequirementController) *Handler
NewHandler Constructor
func (*Handler) DeleteByID ¶
func (*Handler) ListAsSelectOptions ¶
func (h *Handler) ListAsSelectOptions(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateByID ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.