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 (*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 NewRouterServer ¶
func NewRouterServer(cl gopnik.ClusterPluginInterface, cp gopnik.CachePluginInterface, filter gopnik.FilterPluginInterface, renderTimeout time.Duration, pingPeriod time.Duration) (*RouterServer, error)
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 (*TileRouter) Tile ¶
func (self *TileRouter) Tile(coord gopnik.TileCoord) (img []byte, err error)
func (*TileRouter) UpdateRenders ¶
func (self *TileRouter) UpdateRenders(renders []string)
Click to show internal directories.
Click to hide internal directories.