activesets

package
v1.6.6-hotfix1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CacheKindActiveSetBlob sql.QueryCacheKind = "activeset-blob"
)

Variables

This section is empty.

Functions

func Add

func Add(db sql.Executor, id types.Hash32, set *types.EpochActiveSet) error

func DeleteBeforeEpoch added in v1.2.8

func DeleteBeforeEpoch(db sql.Executor, epoch types.EpochID) error

func Get

func GetBlobSizes added in v1.4.1

func GetBlobSizes(db sql.Executor, ids [][]byte) (sizes []int, err error)

GetBlobSizes returns the sizes of the blobs corresponding to activesets with specified ids. For non-existent activesets, the corresponding items are set to -1.

func Has added in v1.4.0

func Has(db sql.Executor, id []byte) (bool, error)

func LoadBlob added in v1.4.1

func LoadBlob(ctx context.Context, db sql.Executor, id []byte, blob *sql.Blob) error

LoadBlob loads activesets as an encoded blob, ready to be sent over the wire.

Types

This section is empty.

Jump to

Keyboard shortcuts

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