sources

package
v0.0.0-...-4a05471 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package sources provides the base interface for all route server data source implementations.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SourceNotFound indicates that a source could
	// not be resolved by an identifier.
	ErrSourceNotFound = errors.New("route server unknown")

	// ErrSourceBusy is returned when a refresh is
	// already in progress.
	ErrSourceBusy = errors.New("source is busy")
)

Source Errors

Functions

This section is empty.

Types

type Source

type Source interface {
	ExpireCaches() int

	Status(context.Context) (*api.StatusResponse, error)
	Neighbors(context.Context) (*api.NeighborsResponse, error)
	NeighborsSummary(context.Context) (*api.NeighborsResponse, error)
	NeighborsStatus(context.Context) (*api.NeighborsStatusResponse, error)
	Routes(ctx context.Context, neighborID string) (*api.RoutesResponse, error)
	RoutesReceived(ctx context.Context, neighborID string) (*api.RoutesResponse, error)
	RoutesFiltered(ctx context.Context, neighborID string) (*api.RoutesResponse, error)
	RoutesNotExported(ctx context.Context, neighborID string) (*api.RoutesResponse, error)
	AllRoutes(context.Context) (*api.RoutesResponse, error)
}

Source is a generic datasource for alice. All route server adapters implement this interface.

Directories

Path Synopsis
Package birdwatcher implements the birdwatcher source for the Alice Looking Glass.
Package birdwatcher implements the birdwatcher source for the Alice Looking Glass.
Package gobgp provides a source implementation for GoBGP.
Package gobgp provides a source implementation for GoBGP.
Package openbgpd provides two source implementations for querying OpenBGPD.
Package openbgpd provides two source implementations for querying OpenBGPD.

Jump to

Keyboard shortcuts

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