handlers

package
v0.0.0-...-01434fe Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Module FX module function wiring internal dependencies.

Types

type TrackerHandler

type TrackerHandler struct {
	FlightTracker *flights.Tracker
}

TrackerHandler represents an HTTP hander for flight tracking operations.

func NewTrackerHandler

func NewTrackerHandler(tracker *flights.Tracker) *TrackerHandler

NewTrackerHandler initializes a new instance of TrackerHandler.

func (*TrackerHandler) TracePath

func (h *TrackerHandler) TracePath() http.HandlerFunc

TracePath godoc @Summary Trace start and end airport given a list of flight routes. @Description Trace start and end airport given a list of flight routes. @Tags flights @Accept json @Produce json @Param request body handlers.TracePath.request true "Flight Routes" @Router /calculate [post]

Jump to

Keyboard shortcuts

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