api

package
v1.15.0-pre.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToAPIFamily

func ToAPIFamily(f *types.Family) (*models.BgpFamily, error)

func ToAPIPath

func ToAPIPath(p *types.Path) (*models.BgpPath, error)

func ToAPIPaths

func ToAPIPaths(ps []*types.Path) ([]*models.BgpPath, error)

func ToAPIRoute

func ToAPIRoute(r *types.Route, routerASN int64) (*models.BgpRoute, error)

func ToAPIRoutes

func ToAPIRoutes(rs []*types.Route, routerASN int64) ([]*models.BgpRoute, error)

func ToAgentFamily

func ToAgentFamily(m *models.BgpFamily) (*types.Family, error)

func ToAgentGetRoutesRequest

func ToAgentGetRoutesRequest(params restapi.GetBgpRoutesParams) (*types.GetRoutesRequest, error)

func ToAgentPath

func ToAgentPath(m *models.BgpPath) (*types.Path, error)

func ToAgentPaths

func ToAgentPaths(ms []*models.BgpPath) ([]*types.Path, error)

func ToAgentRoute

func ToAgentRoute(m *models.BgpRoute) (*types.Route, error)

func ToAgentRoutes

func ToAgentRoutes(ms []*models.BgpRoute) ([]*types.Route, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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