Documentation ¶
Index ¶
- func NewKarteikarteHttpHandler(r *mux.Router, us karteikarte.Usecase)
- type HTTPKarteikarteHandler
- func (u *HTTPKarteikarteHandler) Delete(w http.ResponseWriter, r *http.Request)
- func (u *HTTPKarteikarteHandler) FetchKarten(w http.ResponseWriter, r *http.Request)
- func (u *HTTPKarteikarteHandler) GetByID(w http.ResponseWriter, r *http.Request)
- func (u *HTTPKarteikarteHandler) GetByKastenID(w http.ResponseWriter, r *http.Request)
- func (u *HTTPKarteikarteHandler) Store(w http.ResponseWriter, r *http.Request)
- func (u *HTTPKarteikarteHandler) Update(w http.ResponseWriter, r *http.Request)
- type ResponseError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewKarteikarteHttpHandler ¶
func NewKarteikarteHttpHandler(r *mux.Router, us karteikarte.Usecase)
Types ¶
type HTTPKarteikarteHandler ¶
type HTTPKarteikarteHandler struct {
KarteikarteUsecase karteikarte.Usecase
}
HTTPUserHandler represent the httphandler for user
func (*HTTPKarteikarteHandler) Delete ¶
func (u *HTTPKarteikarteHandler) Delete(w http.ResponseWriter, r *http.Request)
Delete karteikarte from kasten for logged in user
func (*HTTPKarteikarteHandler) FetchKarten ¶
func (u *HTTPKarteikarteHandler) FetchKarten(w http.ResponseWriter, r *http.Request)
FetchKarten get all karten from all kaesten from all users
func (*HTTPKarteikarteHandler) GetByID ¶
func (u *HTTPKarteikarteHandler) GetByID(w http.ResponseWriter, r *http.Request)
GetByID get karteikarte by id
func (*HTTPKarteikarteHandler) GetByKastenID ¶
func (u *HTTPKarteikarteHandler) GetByKastenID(w http.ResponseWriter, r *http.Request)
GetByKastenID get all karteikarten from one kasten by kasten_id
func (*HTTPKarteikarteHandler) Store ¶
func (u *HTTPKarteikarteHandler) Store(w http.ResponseWriter, r *http.Request)
Store karteikarte into kasten for logged in user, kasten_id is expected in struct
func (*HTTPKarteikarteHandler) Update ¶
func (u *HTTPKarteikarteHandler) Update(w http.ResponseWriter, r *http.Request)
Update karteikarte for logged in user, kasten_id is expected in struct
type ResponseError ¶
type ResponseError struct {
Message string `json:"message"`
}
ResponseError represent the reseponse error struct
Click to show internal directories.
Click to hide internal directories.