corereader

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoreReader

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

func (*CoreReader) CountBlocks

func (cr *CoreReader) CountBlocks() (int64, error)

func (*CoreReader) FetchBlockJsonBytes

func (cr *CoreReader) FetchBlockJsonBytes(height int64) ([]byte, error)

type Pool added in v0.0.12

type Pool struct {
	InChan chan *Task
	// contains filtered or unexported fields
}

func NewPool added in v0.0.12

func NewPool(poolSize int, useSecondClient bool) *Pool

func (*Pool) CountBlocks added in v0.0.12

func (p *Pool) CountBlocks() (int64, error)

func (*Pool) FetchBlockJsonBytes added in v0.0.12

func (p *Pool) FetchBlockJsonBytes(height int64) ([]byte, error)

func (*Pool) Flush added in v0.0.12

func (pool *Pool) Flush()

type Task added in v0.0.12

type Task struct {
	BlockHeight    int64
	ResultBytes    []byte
	ResultErr      error
	CompletionChan *chan *Task
}

func NewTask added in v0.0.12

func NewTask(height int64, completionChan *chan *Task) *Task

Jump to

Keyboard shortcuts

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