Documentation
¶
Index ¶
- type Service
- func (s *Service) Clean()
- func (s *Service) GetCache(name string) cache.Manager
- func (s *Service) GetCacheSource(name string, opt tile.TileOptions) layer.Layer
- func (s *Service) GetGrid(name string) geo.Grid
- func (s *Service) GetId() string
- func (s *Service) GetInfoSource(name string) layer.InfoLayer
- func (s *Service) GetLegendSource(name string) layer.LegendLayer
- func (s *Service) GetService() service.Service
- func (s *Service) GetServiceType() ServiceType
- func (s *Service) GetSource(name string) layer.Layer
- func (s *Service) Reload(newConfig *setting.ProxyService, globals *setting.GlobalsSetting, ...) error
- func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)
- type ServiceType
- type TileProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
setting.ProxyInstance
Id string
Type ServiceType
Service service.Service
Grids map[string]geo.Grid
Sources map[string]layer.Layer
InfoSources map[string]layer.InfoLayer
LegendSources map[string]layer.LegendLayer
Caches map[string]cache.Manager
// contains filtered or unexported fields
}
func NewService ¶
func NewService(dataset *setting.ProxyService, globals *setting.GlobalsSetting, fac setting.CacheFactory) *Service
func (*Service) GetCacheSource ¶
func (*Service) GetLegendSource ¶
func (s *Service) GetLegendSource(name string) layer.LegendLayer
func (*Service) GetService ¶
func (*Service) GetServiceType ¶
func (s *Service) GetServiceType() ServiceType
func (*Service) Reload ¶
func (s *Service) Reload(newConfig *setting.ProxyService, globals *setting.GlobalsSetting, fac setting.CacheFactory) error
type ServiceType ¶
type ServiceType uint32
const ( MapboxService ServiceType = 0 WMSService ServiceType = 1 WMTSService ServiceType = 2 TileService ServiceType = 3 CesiumService ServiceType = 4 )
type TileProxy ¶
func NewTileProxy ¶
func NewTileProxy(globals *setting.GlobalsSetting, proxys []*setting.ProxyService, fac setting.CacheFactory) *TileProxy
func (*TileProxy) Reload ¶
func (t *TileProxy) Reload(proxy []*setting.ProxyService, fac setting.CacheFactory)
func (*TileProxy) RemoveService ¶
func (*TileProxy) UpdateService ¶
func (t *TileProxy) UpdateService(id string, d *setting.ProxyService, fac setting.CacheFactory)
Click to show internal directories.
Click to hide internal directories.