handlers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateGraph

func CreateGraph(segments [][]string) map[string][]string

func DFS

func DFS(g map[string][]string, start string, flightSegments *[]string)

func FindItinerary

func FindItinerary(segments [][]string, start string) []string

Types

type Handler

type Handler struct {
}

func New

func New() Handler

func (Handler) FlightCalculate

func (h Handler) FlightCalculate(c echo.Context) error

FlightCalculate godoc @Summary Determine the flight path of a person. @Description get the flight path of a person. @Tags FlightCalculate @ID flightCalculate-get @Accept json @Produce json @Param flightSegments body [][]string true "Flight segments" @Success 200 {object} []string @Failure 500 {object} map[string]interface{} "Internal Server Error" @Router /calculate [post]

func (Handler) ServerHealthCheck

func (h Handler) ServerHealthCheck(c echo.Context) error

ServerHealthCheck godoc @Summary Show the status of server. @Description get the status of server. @Tags ServerHealthCheck @ID healthCheck-get @Produce json @Success 200 {object} map[string]interface{} @Router / [get]

Jump to

Keyboard shortcuts

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