querier

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PathQuerier

type PathQuerier interface {
	snet.PathQuerier
	GetPath(dst addr.IA, fp oracle.PathFingerprint) (snet.Path, error)
	LocalIA() addr.IA
}

func New

func New() (PathQuerier, error)

type Querier

type Querier struct {
	daemon.Querier
}

func (Querier) GetPath

func (f Querier) GetPath(dst addr.IA, fp oracle.PathFingerprint) (snet.Path, error)

GetPath returns the path to a destination dst with a given fingerprint fp, when it exists

func (Querier) LocalIA

func (q Querier) LocalIA() addr.IA

type QuerierMock

type QuerierMock struct {
	mock.Mock
}

func (*QuerierMock) GetPath

func (q *QuerierMock) GetPath(ia addr.IA, fp oracle.PathFingerprint) (snet.Path, error)

func (*QuerierMock) LocalIA

func (q *QuerierMock) LocalIA() addr.IA

func (*QuerierMock) Query

func (q *QuerierMock) Query(ctx context.Context, ia addr.IA) ([]snet.Path, error)

Jump to

Keyboard shortcuts

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