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
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
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
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.
Click to show internal directories.
Click to hide internal directories.