Documentation ¶
Index ¶
- Variables
- func IsBadCoordError(err error) bool
- type BadCoordError
- type MultiRenderPool
- type RenderPool
- func (self *RenderPool) Cmd() []string
- func (self *RenderPool) EnqueueRequest(coord gopnik.TileCoord, resCh chan<- *RenderPoolResponse, ...) error
- func (self *RenderPool) QueueSize() int
- func (self *RenderPool) Reload()
- func (self *RenderPool) Resize(newPoolSize int)
- func (self *RenderPool) SetTTL(ttl uint)
- func (self *RenderPool) Size() int
- func (self *RenderPool) Stop()
- type RenderPoolResponse
- type TileRender
Constants ¶
This section is empty.
Variables ¶
View Source
var FontPath string
Functions ¶
func IsBadCoordError ¶
Types ¶
type BadCoordError ¶
type BadCoordError struct {
// contains filtered or unexported fields
}
func NewBadCoordError ¶
func NewBadCoordError(coord gopnik.TileCoord) *BadCoordError
func (*BadCoordError) Error ¶
func (self *BadCoordError) Error() string
type MultiRenderPool ¶
type MultiRenderPool struct {
// contains filtered or unexported fields
}
func NewMultiRenderPool ¶
func NewMultiRenderPool(poolsCfg app.RenderPoolsConfig) (*MultiRenderPool, error)
func (*MultiRenderPool) EnqueueRequest ¶
func (self *MultiRenderPool) EnqueueRequest(coord gopnik.TileCoord, resCh chan<- *RenderPoolResponse, prio gopnikrpc.Priority) error
func (*MultiRenderPool) Reload ¶
func (self *MultiRenderPool) Reload()
func (*MultiRenderPool) Stop ¶
func (self *MultiRenderPool) Stop()
type RenderPool ¶
type RenderPool struct {
// contains filtered or unexported fields
}
func NewRenderPool ¶
func (*RenderPool) Cmd ¶
func (self *RenderPool) Cmd() []string
func (*RenderPool) EnqueueRequest ¶
func (self *RenderPool) EnqueueRequest(coord gopnik.TileCoord, resCh chan<- *RenderPoolResponse, prio gopnikrpc.Priority) error
func (*RenderPool) QueueSize ¶
func (self *RenderPool) QueueSize() int
func (*RenderPool) Reload ¶
func (self *RenderPool) Reload()
func (*RenderPool) Resize ¶
func (self *RenderPool) Resize(newPoolSize int)
func (*RenderPool) SetTTL ¶
func (self *RenderPool) SetTTL(ttl uint)
func (*RenderPool) Size ¶
func (self *RenderPool) Size() int
func (*RenderPool) Stop ¶
func (self *RenderPool) Stop()
type RenderPoolResponse ¶
type TileRender ¶
type TileRender struct {
// contains filtered or unexported fields
}
Renders images as Web Mercator tiles
func NewTileRender ¶
func NewTileRender(cmd []string, timeout time.Duration) (*TileRender, error)
func (*TileRender) RenderTiles ¶
func (*TileRender) Stop ¶
func (t *TileRender) Stop()
Click to show internal directories.
Click to hide internal directories.