parentscheck

package
v0.0.0-...-e884aa9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrWrongSeq        = errors.New("event has wrong sequence time")
	ErrWrongLamport    = errors.New("event has wrong Lamport time")
	ErrWrongSelfParent = errors.New("event is missing self-parent")
)

Functions

This section is empty.

Types

type Checker

type Checker struct{}

Checker performs checks, which require the parents list

func New

func New() *Checker

New checker which performs checks, which require the parents list

func (*Checker) Validate

func (v *Checker) Validate(e dag.Event, parents dag.Events) error

Validate event

Jump to

Keyboard shortcuts

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