mapsapi

package
v0.0.0-...-f1a14e7 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSearchResults

func GetSearchResults(ctx context.Context, query string) ([]models.SearchResult, error)

func WriteJSON

func WriteJSON(w http.ResponseWriter, status int, v any) error

Types

type APIError

type APIError struct {
	Error string
}

type APIServer

type APIServer struct {
	// contains filtered or unexported fields
}

func NewAPIServer

func NewAPIServer(listenAddr string) *APIServer

func (*APIServer) Run

func (s *APIServer) Run()

type APIfunc

type APIfunc func(http.ResponseWriter, *http.Request) error

Jump to

Keyboard shortcuts

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