storage

package
v0.0.0-...-fa777c1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0, BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("tiles not found")

Functions

This section is empty.

Types

type MapInfos

type MapInfos struct {
	CenterLat   float64
	CenterLng   float64
	MinZoom     int
	MaxZoom     int
	Attribution string
	Name        string
}

MapInfos used to store information about the map if any in DB

type TileStore

type TileStore interface {
	ReadTileData(ctx context.Context, z uint8, x uint64, y uint64) ([]byte, error)
	LoadMapInfos() (MapInfos, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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