api

package
v0.0.0-...-e1300c2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS(next http.Handler) http.Handler

CORS middleware

func GetAllStateBorders

func GetAllStateBorders(w http.ResponseWriter, r *http.Request)

func GetStateBorders

func GetStateBorders(w http.ResponseWriter, r *http.Request)

func ReqLogger

func ReqLogger(next http.Handler) http.Handler

middleware for logging requests

Types

type Location

type Location struct {
	Name         string   `json:"name"`
	Abbreviation string   `json:"abbreviation"`
	Borders      []string `json:"borders"`
}

Jump to

Keyboard shortcuts

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