Documentation ¶
Overview ¶
Config loads and understand the tegola config format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // LocationName is the file name or http server that the config was read from. If this is "", it means that the location was unknown. This is the case if the Prase() function is used // directly. LocationName string Webserver Webserver `toml:"webserver"` // Map of providers. Providers []map[string]interface{} Maps []Map }
A Config represents the a Tegola Config file.
type ErrInvalidProviderLayerName ¶
type ErrInvalidProviderLayerName struct {
ProviderLayerName string
}
func (ErrInvalidProviderLayerName) Error ¶
func (e ErrInvalidProviderLayerName) Error() string
type ErrLayerCollision ¶
func (ErrLayerCollision) Error ¶
func (e ErrLayerCollision) Error() string
type ErrMapNotFound ¶
type ErrMapNotFound struct {
MapName string
}
func (ErrMapNotFound) Error ¶
func (e ErrMapNotFound) Error() string
type Map ¶
type Map struct { Name string `toml:"name"` Attribution string `toml:"attribution"` Bounds []float64 `toml:"bounds"` Center [3]float64 `toml:"center"` Layers []MapLayer `toml:"layers"` }
A Map represents a map in the Tegola Config file.
Click to show internal directories.
Click to hide internal directories.