throughput_v2

package
v0.0.0-...-714934f Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathEMAMock

type PathEMAMock struct {
	mock.Mock
}

func (*PathEMAMock) GetEMAOrDefault

func (p *PathEMAMock) GetEMAOrDefault(fp oracle.PathFingerprint, def float64) float64

func (*PathEMAMock) Update

func (p *PathEMAMock) Update(val float64, fp oracle.PathFingerprint)

type PathEMAService

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

func NewPathEMAService

func NewPathEMAService(smoothing float64, logger *zap.SugaredLogger) PathEMAService

func (*PathEMAService) GetEMAOrDefault

func (p *PathEMAService) GetEMAOrDefault(fp oracle.PathFingerprint, def float64) float64

func (*PathEMAService) Update

func (p *PathEMAService) Update(val float64, fp oracle.PathFingerprint)

type PathEMAServiceI

type PathEMAServiceI interface {
	Update(val float64, fp oracle.PathFingerprint)
	GetEMAOrDefault(fp oracle.PathFingerprint, def float64) float64
}

type ScoringService

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

func New

func New(moniRouter *mux.Router, connector querier.PathQuerier, slogger *zap.SugaredLogger) *ScoringService

func (*ScoringService) GetScores

func (s *ScoringService) GetScores(dst addr.IA) services.PathScorings

func (*ScoringService) Name

func (*ScoringService) OnStatsReceived

func (s *ScoringService) OnStatsReceived(report oracle.Report, path snet.Path)

Jump to

Keyboard shortcuts

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