collection

package
v0.0.0-...-943aac3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

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

func NewCollect

func NewCollect(ctx context.Context, repo models.Repo, url string, startHeight int64, lookBackStartHeight int64) (*Collection, error)

func NewSimpleCollect

func NewSimpleCollect(ctx context.Context, url string) *Collection

func (*Collection) QueryBlock

func (s *Collection) QueryBlock(ctx context.Context, blockID int64) (*types.BlockInfo, error)

func (*Collection) QueryEvent

func (s *Collection) QueryEvent(ctx context.Context, blockID int64) (*types.EventsConnection, error)

func (*Collection) QueryEventByID

func (s *Collection) QueryEventByID(ctx context.Context, eventID string) (*types.EventDetail, error)

func (*Collection) QueryExtrinsic

func (s *Collection) QueryExtrinsic(ctx context.Context, blockID int64) (*types.ExtrinsicsConnection, error)

func (*Collection) Start

func (s *Collection) Start(ctx context.Context)

func (*Collection) TrackSpacePledged

func (s *Collection) TrackSpacePledged(ctx context.Context, r models.SpaceRepo) error

Jump to

Keyboard shortcuts

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