Documentation
¶
Overview ¶
Package digletss is a diglet tile server
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IoHub ¶
type IoHub struct {
// contains filtered or unexported fields
}
func NewHub ¶
func NewHub(tilesets *TilesetIndex) (h *IoHub)
type TileXYZ ¶
type TilesetIndex ¶
type TilesetIndex struct {
Path string
Tilesets map[string]*mbtiles.Tileset
Events chan TsEvent
// contains filtered or unexported fields
}
TilesetIndex is a container for tilesets loaded from disk
func NewTilesetIndex ¶
func NewTilesetIndex(mbtilesDir string) (tsi *TilesetIndex)
NewTilesetIndex creates a new tileset index, but does not read the tile tilesets from disk
func ReadTilesets ¶
func ReadTilesets(mbtilesDir string) (tsi *TilesetIndex)
ReadTilesets create a new tilesetindex and read the tilesets contents from disk It spawns goroutine that will refresh Tilesets from disk on changes
type TilesetTopic ¶
type TilesetTopic struct {
// contains filtered or unexported fields
}
hub maintains the set of active connections and broadcasts messages to the connections.
Click to show internal directories.
Click to hide internal directories.