Documentation ¶
Index ¶
- func CreateHandler(logger *slog.Logger, missionCreator MissionCreator) http.HandlerFunc
- func DeleteHandler(logger *slog.Logger, missionDeleter MissionDeleter) http.HandlerFunc
- func GetAllHandler(logger *slog.Logger, missionLister MissionLister) http.HandlerFunc
- func GetOneHandler(logger *slog.Logger, missionGetter MissionGetter) http.HandlerFunc
- func UpdateHandler(logger *slog.Logger, missionUpdater MissionUpdater) http.HandlerFunc
- type CreateRequest
- type CreateResponse
- type MissionCreator
- type MissionDeleter
- type MissionGetter
- type MissionLister
- type MissionResponse
- type MissionUpdater
- type UpdateMissionRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
func CreateHandler(logger *slog.Logger, missionCreator MissionCreator) http.HandlerFunc
func DeleteHandler ¶
func DeleteHandler(logger *slog.Logger, missionDeleter MissionDeleter) http.HandlerFunc
func GetAllHandler ¶
func GetAllHandler(logger *slog.Logger, missionLister MissionLister) http.HandlerFunc
func GetOneHandler ¶
func GetOneHandler(logger *slog.Logger, missionGetter MissionGetter) http.HandlerFunc
func UpdateHandler ¶
func UpdateHandler(logger *slog.Logger, missionUpdater MissionUpdater) http.HandlerFunc
Types ¶
type CreateRequest ¶
type CreateResponse ¶
type CreateResponse struct {
ID int64 `json:"id,omitempty"`
}
type MissionCreator ¶
type MissionDeleter ¶
type MissionLister ¶
type MissionResponse ¶
type MissionUpdater ¶
type UpdateMissionRequest ¶
Click to show internal directories.
Click to hide internal directories.