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. |
Click to show internal directories.
Click to hide internal directories.