parentlesscheck

package
v1.0.2-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct {
	// FilterInterested returns only event which may be requested.
	OnlyInterested func(ids hash.Events) hash.Events

	HeavyCheck HeavyCheck
	LightCheck LightCheck
}

type Checker

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

func New

func New(callback Callback) *Checker

func (*Checker) Enqueue

func (c *Checker) Enqueue(inEvents dag.Events, checked func(ee dag.Events, errs []error)) error

Enqueue tries to fill gaps the fetcher's future import queue.

type HeavyCheck

type HeavyCheck interface {
	Enqueue(events dag.Events, onValidated func(dag.Events, []error)) error
}

type LightCheck

type LightCheck func(dag.Event) error

Jump to

Keyboard shortcuts

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