parentscheck

package
v0.0.1-dev Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 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