candidates

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizerCandidatesScanner

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

func NewAuthorizerCandidatesScanner

func NewAuthorizerCandidatesScanner(logger zerolog.Logger) AuthorizerCandidatesScanner

func (AuthorizerCandidatesScanner) GetCollection

func (s AuthorizerCandidatesScanner) GetCollection(
	client client.Client,
	ctx context.Context,
	id flow.Identifier,
) (coll *flow.Collection, err error)

func (AuthorizerCandidatesScanner) Scan

type BlockRange

type BlockRange struct {
	Start uint64
	End   uint64 // inclusive
}

type CandidateScanner

type CandidateScanner interface {
	Scan(ctx context.Context, client client.Client, blocks BlockRange) CandidatesResult
}

type CandidatesResult

type CandidatesResult struct {
	Addresses map[flow.Address]struct{}
	// contains filtered or unexported fields
}

func NewCandidatesResult

func NewCandidatesResult(addresses map[flow.Address]struct{}) CandidatesResult

func NewCandidatesResultError

func NewCandidatesResultError(err error) CandidatesResult

func WaitForCandidateResults

func WaitForCandidateResults(
	candidatesChan <-chan CandidatesResult,
	expectedResults int,
) CandidatesResult

func (*CandidatesResult) Err

func (r *CandidatesResult) Err() error

func (*CandidatesResult) MergeWith

func (r *CandidatesResult) MergeWith(r2 CandidatesResult)

type EventCandidatesScanner

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

func NewEventCandidatesScanner

func NewEventCandidatesScanner(
	eventType string,
	candidateAddressFromEvent func(event cadence.Event) (flow.Address, error),
	logger zerolog.Logger,
) *EventCandidatesScanner

func (*EventCandidatesScanner) Scan

Jump to

Keyboard shortcuts

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