query

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocateOptions

type LocateOptions struct {
	VRF     string
	Gateway string
	Area    string
	Node    string
}

LocateOptions 节点定位选项

type PathQueryOptions

type PathQueryOptions struct {
	Source      *network.NetworkList
	Destination *network.NetworkList
	VRF         string
	Gateway     string
	Area        string
	SourceNode  string
	IPFamily    network.IPFamily
	MaxPaths    int  // 最大路径数量(0表示无限制)
	EnableECMP  bool // 是否启用ECMP
	MaxDepth    int  // 最大路径深度(0表示无限制)
}

PathQueryOptions 路径查询选项

func NewPathQueryOptions

func NewPathQueryOptions() *PathQueryOptions

NewPathQueryOptions 创建路径查询选项

func (*PathQueryOptions) WithDestination

func (o *PathQueryOptions) WithDestination(dst *network.NetworkList) *PathQueryOptions

WithDestination 设置目标网络

func (*PathQueryOptions) WithECMP

func (o *PathQueryOptions) WithECMP(enable bool) *PathQueryOptions

WithECMP 启用/禁用ECMP

func (*PathQueryOptions) WithMaxPaths

func (o *PathQueryOptions) WithMaxPaths(maxPaths int) *PathQueryOptions

WithMaxPaths 设置最大路径数

func (*PathQueryOptions) WithSource

WithSource 设置源网络

func (*PathQueryOptions) WithVRF

func (o *PathQueryOptions) WithVRF(vrf string) *PathQueryOptions

WithVRF 设置VRF

Jump to

Keyboard shortcuts

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