Documentation ¶
Index ¶
- func MarshalDetailResponse(res *sub_s.Offer, w http.ResponseWriter)
- func MarshalListAsSelectOptionResponse(res []*sub_s.OfferAsSelectOption, w http.ResponseWriter)
- func MarshalListResponse(res *sub_s.OfferPaginationListResult, w http.ResponseWriter)
- func MarshalUpdateResponse(res *sub_s.Offer, w http.ResponseWriter)
- func UnmarshalUpdateRequest(ctx context.Context, r *http.Request) (*sub_s.Offer, error)
- func ValidateUpdateRequest(dirtyData *sub_s.Offer) error
- type Handler
- func (h *Handler) GetByID(w http.ResponseWriter, r *http.Request, id string)
- func (h *Handler) GetByServiceType(w http.ResponseWriter, r *http.Request, serviceTypeStr 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 MarshalDetailResponse ¶
func MarshalDetailResponse(res *sub_s.Offer, w http.ResponseWriter)
func MarshalListAsSelectOptionResponse ¶
func MarshalListAsSelectOptionResponse(res []*sub_s.OfferAsSelectOption, w http.ResponseWriter)
func MarshalListResponse ¶
func MarshalListResponse(res *sub_s.OfferPaginationListResult, w http.ResponseWriter)
func MarshalUpdateResponse ¶
func MarshalUpdateResponse(res *sub_s.Offer, w http.ResponseWriter)
func UnmarshalUpdateRequest ¶
func ValidateUpdateRequest ¶
Types ¶
type Handler ¶
type Handler struct { Logger *slog.Logger Controller offer_c.Offerontroller }
Handler Creates http request handler
func NewHandler ¶
func NewHandler(loggerp *slog.Logger, c offer_c.Offerontroller) *Handler
NewHandler Constructor
func (*Handler) GetByServiceType ¶
func (*Handler) ListAsSelectOptions ¶
func (h *Handler) ListAsSelectOptions(w http.ResponseWriter, r *http.Request)
func (*Handler) UpdateByID ¶
Click to show internal directories.
Click to hide internal directories.