tilerouter

package
v0.0.0-...-ebda00a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2016 License: BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Offline = iota
	Online
)

Variables

View Source
var ATTEMPTS = 2

Functions

This section is empty.

Types

type RenderSelector

type RenderSelector struct {
	// contains filtered or unexported fields
}

func NewRenderSelector

func NewRenderSelector(renders []string, pingPeriod time.Duration, timeout time.Duration) (*RenderSelector, error)

func (*RenderSelector) FreeConnection

func (self *RenderSelector) FreeConnection(conn *thriftConn)

func (*RenderSelector) SelectRender

func (self *RenderSelector) SelectRender(coord gopnik.TileCoord) (*thriftConn, error)

func (*RenderSelector) SetStatus

func (self *RenderSelector) SetStatus(addr string, status int)

func (*RenderSelector) Stop

func (self *RenderSelector) Stop()

type RouterServer

type RouterServer struct {
	// contains filtered or unexported fields
}

func (*RouterServer) ServeHTTP

func (srv *RouterServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type TileRouter

type TileRouter struct {
	// contains filtered or unexported fields
}

func NewTileRouter

func NewTileRouter(renders []string, timeout time.Duration, pingPeriod time.Duration) (*TileRouter, error)

func (*TileRouter) Tile

func (self *TileRouter) Tile(coord gopnik.TileCoord) (img []byte, err error)

func (*TileRouter) UpdateRenders

func (self *TileRouter) UpdateRenders(renders []string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL