coverage

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package coverage is the coverage method of the beacon policy module. A set holds each origin's cheapest route, the founding core's first; then, while some link is crossed by every route picked and another route avoids one such link, the cheapest such route; then the cheapest route over each interface no picked route arrived over; then, for a receiver in the node's group, the cheapest route over each link into the group at another member that no picked route entered by. Routes rank by price, as the SCION library prices paths.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

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

Policy is the coverage method.

func New

func New(ia addr.IA, tags *bus.Topic[bus.NodeTags]) *Policy

New returns the coverage method of the node ia, whose group the last event on tags names; a nil topic names none.

func (*Policy) Select

func (p *Policy) Select(
	receiver, founder addr.IA, cands []beaconing.Candidate) []beaconing.Candidate

Select picks the receiver's set among cands. The routes into the node's group count for a receiver in the group, the node itself among them.

Jump to

Keyboard shortcuts

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