rating

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPeersRatingHandler

func NewPeersRatingHandler(args ArgPeersRatingHandler) (*peersRatingHandler, error)

NewPeersRatingHandler returns a new peers rating handler

func NewPeersRatingMonitor

func NewPeersRatingMonitor(args ArgPeersRatingMonitor) (*peersRatingMonitor, error)

NewPeersRatingMonitor returns a new peers rating monitor

Types

type ArgPeersRatingHandler

type ArgPeersRatingHandler struct {
	TopRatedCache types.Cacher
	BadRatedCache types.Cacher
	Logger        p2p.Logger
}

ArgPeersRatingHandler is the DTO used to create a new peers rating handler

type ArgPeersRatingMonitor

type ArgPeersRatingMonitor struct {
	TopRatedCache types.Cacher
	BadRatedCache types.Cacher
}

ArgPeersRatingMonitor is the DTO used to create a new peers rating monitor

Jump to

Keyboard shortcuts

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