Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateMissionControlController ¶
type CreateMissionControlController struct { // UseCase is the use case for creating mission control, following the port pattern. UseCase incoming.CreateMissionControlPort }
CreateMissionControlController handles requests for creating a new mission control.
func NewCreateMissionControlController ¶
func NewCreateMissionControlController(useCase incoming.CreateMissionControlPort) *CreateMissionControlController
NewCreateMissionControlController initializes a new controller with the provided use case.
func (*CreateMissionControlController) HandleRequest ¶
func (c *CreateMissionControlController) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest processes the HTTP request for creating a mission control. @param w http.ResponseWriter - The response writer to write the HTTP response. @param r *http.Request - The HTTP request received.
type GetMissionControlController ¶
type GetMissionControlController struct {
UseCase incoming.GetMissionControlPort
}
GetMissionControlController handles requests to get mission control details for a user.
func NewGetMissionControlController ¶
func NewGetMissionControlController(useCase incoming.GetMissionControlPort) *GetMissionControlController
NewGetMissionControlController creates a new GetMissionControlController.
func (*GetMissionControlController) HandleRequest ¶
func (c *GetMissionControlController) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest handles the HTTP request for getting mission control details.
type HealthCheckController ¶
type HealthCheckController struct{}
HealthCheckController handles health check requests.
func NewHealthCheckController ¶
func NewHealthCheckController() *HealthCheckController
NewHealthCheckController creates a new instance of HealthCheckController.
func (*HealthCheckController) HandleRequest ¶
func (c *HealthCheckController) HandleRequest(w http.ResponseWriter, r *http.Request)
HandleRequest handles the HTTP request for the health check endpoint. @param w http.ResponseWriter - The response writer to send the HTTP response. @param r *http.Request - The HTTP request received.
type MoveRoversController ¶
type MoveRoversController struct {
UseCase incoming.MoveRoversPort
}
func NewMoveRoversController ¶
func NewMoveRoversController(useCase incoming.MoveRoversPort) *MoveRoversController
func (*MoveRoversController) HandleRequest ¶
func (c *MoveRoversController) HandleRequest(w http.ResponseWriter, r *http.Request)