package
0.0.0-20220412220916-5ea02083e3ec
Repository: https://github.com/riteshrch/go-edge-device-lib.git
Documentation: pkg.go.dev

# Functions

NewFilter creates a Filter for Peer Diversity.

# Structs

CplDiversityStats contains the peer diversity stats for a Cpl.
Filter is a peer diversity filter that accepts or rejects peers based on the whitelisting rules configured AND the diversity policies defined by the implementation of the PeerIPGroupFilter interface passed to it.
PeerGroupInfo represents the grouping info for a Peer.

# Interfaces

PeerIPGroupFilter is the interface that must be implemented by callers who want to instantiate a `peerdiversity.Filter`.

# Type aliases

PeerIPGroupKey is a unique key that represents ONE of the IP Groups the peer belongs to.