engine

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DaemonEngine

type DaemonEngine struct {
	IA          addr.IA
	MTU         uint16
	LocalASInfo asinfo.LocalASInfo
	Fetcher     fetcher.Fetcher
	RevCache    revcache.RevCache
	ASInspector trust.Inspector
	DRKeyClient *drkey_daemon.ClientEngine
	// contains filtered or unexported fields
}

DaemonEngine contains the core daemon logic, independent of the transport layer. It can be used directly by in-process clients or wrapped by the gRPC server.

func (*DaemonEngine) ASInfo

func (e *DaemonEngine) ASInfo(_ context.Context, ia addr.IA) (types.ASInfo, error)

ASInfo requests information about an AS. The zero IA returns local AS info.

func (*DaemonEngine) DRKeyGetASHostKey

func (e *DaemonEngine) DRKeyGetASHostKey(
	ctx context.Context,
	meta drkey.ASHostMeta,
) (drkey.ASHostKey, error)

DRKeyGetASHostKey requests an AS-Host Key.

func (*DaemonEngine) DRKeyGetHostASKey

func (e *DaemonEngine) DRKeyGetHostASKey(
	ctx context.Context,
	meta drkey.HostASMeta,
) (drkey.HostASKey, error)

DRKeyGetHostASKey requests a Host-AS Key.

func (*DaemonEngine) DRKeyGetHostHostKey

func (e *DaemonEngine) DRKeyGetHostHostKey(
	ctx context.Context,
	meta drkey.HostHostMeta,
) (drkey.HostHostKey, error)

DRKeyGetHostHostKey requests a Host-Host Key.

func (*DaemonEngine) Interfaces

func (e *DaemonEngine) Interfaces(_ context.Context) (map[uint16]netip.AddrPort, error)

Interfaces returns the map of interface identifiers to the underlay internal address.

func (*DaemonEngine) LocalIA

func (e *DaemonEngine) LocalIA(_ context.Context) (addr.IA, error)

LocalIA returns the local ISD-AS number.

func (*DaemonEngine) NotifyInterfaceDown

func (e *DaemonEngine) NotifyInterfaceDown(ctx context.Context, ia addr.IA, ifID uint64) error

NotifyInterfaceDown notifies about an interface that is down.

func (*DaemonEngine) Paths

func (e *DaemonEngine) Paths(
	ctx context.Context,
	dst, src addr.IA,
	flags types.PathReqFlags,
) ([]snet.Path, error)

Paths requests a set of end to end paths between the source and destination.

func (*DaemonEngine) PortRange

func (e *DaemonEngine) PortRange(_ context.Context) (uint16, uint16, error)

PortRange returns the dispatched port range.

func (*DaemonEngine) SVCInfo

func (e *DaemonEngine) SVCInfo(_ context.Context) ([]string, error)

SVCInfo requests information about addresses and ports of infrastructure services.

Jump to

Keyboard shortcuts

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