fetcher

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package fetcher implements path segment fetching, verification and combination logic for SCIOND.

Index

Constants

View Source
const (
	DefaultMinWorkerLifetime = 10 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	GetPaths(ctx context.Context, src, dst addr.IA, refresh bool) ([]snet.Path, error)
}

func NewFetcher

func NewFetcher(cfg FetcherConfig) Fetcher

type FetcherConfig

type FetcherConfig struct {
	IA         addr.IA
	MTU        uint16
	Core       bool
	NextHopper interface {
		UnderlayNextHop(uint16) *net.UDPAddr
	}

	RPC       segfetcher.RPC
	PathDB    pathdb.DB
	Inspector trust.Inspector

	Verifier infra.Verifier
	RevCache revcache.RevCache
	Cfg      config.SDConfig
}

type TrustStore

type TrustStore interface {
	trust.Inspector
}

Directories

Path Synopsis
Package mock_fetcher is a generated GoMock package.
Package mock_fetcher is a generated GoMock package.

Jump to

Keyboard shortcuts

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