tlogclient

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: ISC Imports: 14 Imported by: 0

Documentation

Index

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

func (c *Client) EntriesSumDB(tree tlog.Tree, start int64) iter.Seq2[int64, []byte]

func (*Client) Error

func (c *Client) Error() error

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) SaveTiles

func (f *TileFetcher) SaveTiles(tiles []tlog.Tile, data [][]byte)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳