Documentation
¶
Overview ¶
Package diglet/wms is an HTTP Tile Server that also support JSON-RPC & WebSocket requests. Tile subscriptions are also available to support real-time map applications with large feature sets.
Index ¶
- Constants
- func MBTServer(mbtPath string, port string) *dig.App
- type Cache
- func (c *Cache) Close()
- func (c *Cache) Destroy()
- func (c *Cache) DropBucket(bucket string) (ok bool)
- func (c *Cache) Get(bucket, key string) (value []byte, ok bool)
- func (c *Cache) Map(bucket string, fn func(value []byte) ([]byte, error)) (err error)
- func (c *Cache) Put(bucket, key string, value []byte) (err error)
- type IoHub
- type TileCache
- type TileXYZ
- type TilesetIndex
- type TilesetTopic
- type TsEvent
- type TsOp
Constants ¶
View Source
const ( GetTile string = "get_tile" GetRawTile string = "get_raw_tile" GetTileset string = "get_tileset" ListTilesets string = "list_tilesets" SubscribeTile string = "subscribe_tile" UnsubscribeTile string = "unsubscribe_tile" )
View Source
const CacheName = ".diglet.cache"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) DropBucket ¶
type IoHub ¶
type IoHub struct {
// contains filtered or unexported fields
}
func NewHub ¶
func NewHub(tilesets *TilesetIndex) (h *IoHub)
type TileCache ¶
type TileCache struct {
*Cache
}
func InitTileCache ¶
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.