package
0.11.5
Repository: https://github.com/mike76-dev/sia-satellite.git
Documentation: pkg.go.dev

# Functions

New creates a new HostTree given a score function.
NewFilter creates a new addressFilter object.

# Constants

IPv4FilterRange is the number of bits within an IP address (starting from the left) which have to be unique for the host not to be filtered.
IPv6FilterRange is the number of bits within an IP address (starting from the left) which have to be unique for the host not to be filtered.

# Variables

ErrHostExists is returned if an Insert is called with a public key that already exists in the tree.
ErrNoSuchHost is returned if Remove is called with a public key that does not exist in the tree.

# Structs

Filter filters host addresses which belong to the same subnet to avoid selecting hosts from the same region.
HostAdjustments contains all the adjustments relevant to a host's score and implements the scoreBreakdown interface.
No description provided by the author

# Interfaces

ScoreBreakdown is an interface that allows us to mock the hostAdjustments during testing.

# Type aliases

No description provided by the author