parentlesscheck

package
v0.0.0-...-2cf946a Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2022 License: MIT Imports: 4 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(tasks []queuedcheck.EventTask, checked func([]queuedcheck.EventTask)) error

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

type HeavyCheck

type HeavyCheck interface {
	Enqueue(tasks []queuedcheck.EventTask, onValidated func([]queuedcheck.EventTask)) 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