services

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathScorings

type PathScorings map[oracle.PathFingerprint]float64

type ScoringService

type ScoringService interface {
	OnStatsReceived(report oracle.Report, path snet.Path)
	GetScores(dst addr.IA) PathScorings
	Name() ServiceName
}

type ScoringServiceMock

type ScoringServiceMock struct {
	mock.Mock
}

func (*ScoringServiceMock) GetScores

func (s *ScoringServiceMock) GetScores(dst addr.IA) PathScorings

func (*ScoringServiceMock) Name

func (s *ScoringServiceMock) Name() ServiceName

func (*ScoringServiceMock) OnStatsReceived

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

type ServiceName

type ServiceName string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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