internal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerMiddleware added in v1.0.1

type LoggerMiddleware struct {
	Handler http.Handler
	Logger  zerolog.Logger
}

LoggerMiddleware a type to implement our logging middleware.

func (LoggerMiddleware) ServeHTTP added in v1.0.1

func (lmw LoggerMiddleware) ServeHTTP(w http.ResponseWriter, req *http.Request)

ServeHTTP implements the Handler interface for our logging middleware.

type PlacesAPI added in v0.3.0

type PlacesAPI struct {
	*places.Places
}

func (PlacesAPI) GetCompletions added in v1.0.1

func (placesAPI PlacesAPI) GetCompletions(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func (PlacesAPI) GetMetrics added in v1.0.1

func (placesAPI PlacesAPI) GetMetrics(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)

func (PlacesAPI) GetPlace added in v1.0.1

func (placesAPI PlacesAPI) GetPlace(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

type VersionAPI added in v1.0.1

type VersionAPI struct {
	Version string `json:"version"`
	Hash    string `json:"hash"`
}

func (VersionAPI) GetVersion added in v1.0.1

func (versionAPI VersionAPI) GetVersion(w http.ResponseWriter, _ *http.Request, _ httprouter.Params)

GetVersion is the Handler for the /version-endpoint.

Jump to

Keyboard shortcuts

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