controllers

package
v0.0.0-...-7daac14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 5 Imported by: 0

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

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

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL