lg

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//go:embed resources
	Res embed.FS
)

Functions

This section is empty.

Types

type LookingGlass

type LookingGlass struct {
	// contains filtered or unexported fields
}

func New

func New(risAddr string) (*LookingGlass, error)

func (*LookingGlass) Index

func (l *LookingGlass) Index(w http.ResponseWriter, r *http.Request)

func (*LookingGlass) Routes

func (l *LookingGlass) Routes(w http.ResponseWriter, r *http.Request)

type Path

type Path struct {
	Source    string
	Nexthop   string
	LocalPref uint32
	ASPath    string
	MED       uint32
}

type Route

type Route struct {
	Prefix string
	Paths  []Path
}

type Router

type Router struct {
	Address string
	SysName string
	VRFs    []string
}

Jump to

Keyboard shortcuts

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