ports

package
v0.0.0-...-9d1514a Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpController

func NewHttpController(app usecases.Application, errQueue chan error) http.Handler

NewHttpController allocates and returns a new instance of httpController.

Types

type LocationsResponse

type LocationsResponse struct {
	OrderUUID string           `json:"order_id"`
	History   []query.Location `json:"history"`
}

type Route

type Route struct {
	Path    string
	Methods []string
	Scheme  string
	Handler http.Handler
}

func GetRoutes

func GetRoutes(app usecases.Application, errQueue chan error) []Route

func NewRoute

func NewRoute(path string, handler http.Handler, scheme string, methods ...string) Route

Jump to

Keyboard shortcuts

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