server

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FingerprintScores

type FingerprintScores struct {
	Fingerprint oracle.PathFingerprint `json:"fingerprint"`
	Scores      map[string]float64     `json:"scores"`
}

type OracleServer

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

func New

func New(listen, listenMonitor string, logger *zap.SugaredLogger) (*OracleServer, error)

func (*OracleServer) AddScoringService

func (o *OracleServer) AddScoringService(service services.ScoringService)

func (*OracleServer) RegisterScoringAPI

func (o *OracleServer) RegisterScoringAPI()

func (*OracleServer) RegisterStatsAPI

func (o *OracleServer) RegisterStatsAPI()

func (*OracleServer) Start

func (o *OracleServer) Start() error

type ScoringQuery

type ScoringQuery struct {
	Queries map[string][]services.ServiceName `json:"scorings"`
}

type ScoringResponse

type ScoringResponse map[addr.IA][]FingerprintScores

Jump to

Keyboard shortcuts

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