Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const CacheDateHeader = "X-Cache-Date"

CacheDateHeader advertises the generation timestamp of the loaded cache, so a client can notice that the server now serves an updated cache. It is set on every response, including errors.

View Source
const MaxBodySize = 32 * 1000 * 1000 // 32MB

Variables

This section is empty.

Functions

func FGeoDemoHandler added in v1.5.0

func FGeoDemoHandler(ctx *fasthttp.RequestCtx)

FGeoDemoHandler implements GET /fgeocode/demo, a self-contained browser page for the forward geocoding API. It is a static asset, served even when forward geocoding is disabled; the page itself surfaces the search error.

func RGeoDemoHandler added in v1.6.0

func RGeoDemoHandler(ctx *fasthttp.RequestCtx)

RGeoDemoHandler implements GET /rgeocode/demo, a self-contained browser page for the reverse geocoding points endpoint: click the map, see every cached point within the search radius, hover for the full address. It is a static asset, so it is served regardless of the cache contents.

func Run

func Run(ctx context.Context, address string, rgeo geocoder.Geocoder, fgeo *fgeocode.Geocoder, pointsPerThread int, log *slog.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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