layerpatrol

package
v1.4.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package layerpatrol keeps parties informed about the general progress of each layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LayerPatrol

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

LayerPatrol keeps progress of each layer.

func New

func New() *LayerPatrol

New returns an instance of LayerPatrol.

func (*LayerPatrol) CompleteHare

func (lp *LayerPatrol) CompleteHare(layerID types.LayerID)

CompleteHare is called by hare instance that completed this layer.

func (*LayerPatrol) IsHareInCharge

func (lp *LayerPatrol) IsHareInCharge(layerID types.LayerID) bool

IsHareInCharge returns true if the hare is set to handle the validation of the specified layer.

func (*LayerPatrol) SetHareInCharge

func (lp *LayerPatrol) SetHareInCharge(layerID types.LayerID)

SetHareInCharge sets the layer's validation to be triggered by hare (as opposed to syncer).

Jump to

Keyboard shortcuts

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