Documentation
¶
Index ¶
- type Client
- type PermanentCache
- type TileFetcher
- func (f *TileFetcher) Height() int
- func (f *TileFetcher) ReadTiles(tiles []tlog.Tile) (data [][]byte, err error)
- func (f *TileFetcher) SaveTiles(tiles []tlog.Tile, data [][]byte)
- func (f *TileFetcher) SetHTTPClient(hc *http.Client)
- func (f *TileFetcher) SetLimit(limit int)
- func (f *TileFetcher) SetLogger(log *slog.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(tr tlog.TileReader) *Client
func (*Client) EntriesSumDB ¶
type PermanentCache ¶
type PermanentCache struct {
// contains filtered or unexported fields
}
func NewPermanentCache ¶
func NewPermanentCache(tr tlog.TileReader, dir string) *PermanentCache
func (*PermanentCache) Height ¶
func (c *PermanentCache) Height() int
func (*PermanentCache) ReadTiles ¶
func (c *PermanentCache) ReadTiles(tiles []tlog.Tile) (data [][]byte, err error)
func (*PermanentCache) SaveTiles ¶
func (c *PermanentCache) SaveTiles(tiles []tlog.Tile, data [][]byte)
func (*PermanentCache) SetLogger ¶
func (c *PermanentCache) SetLogger(log *slog.Logger)
type TileFetcher ¶
type TileFetcher struct {
// contains filtered or unexported fields
}
func NewSumDBFetcher ¶
func NewSumDBFetcher(base string) *TileFetcher
func (*TileFetcher) Height ¶
func (f *TileFetcher) Height() int
func (*TileFetcher) ReadTiles ¶
func (f *TileFetcher) ReadTiles(tiles []tlog.Tile) (data [][]byte, err error)
func (*TileFetcher) SetHTTPClient ¶
func (f *TileFetcher) SetHTTPClient(hc *http.Client)
func (*TileFetcher) SetLimit ¶
func (f *TileFetcher) SetLimit(limit int)
func (*TileFetcher) SetLogger ¶
func (f *TileFetcher) SetLogger(log *slog.Logger)
Click to show internal directories.
Click to hide internal directories.