dir

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 1 Imported by: 6

Documentation

Overview

Package dir represents BGP message direction.

Exported to a separate package in order to avoid loops.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValue = errors.New("invalid value")
)

Functions

This section is empty.

Types

type Dir

type Dir byte

BGP message direction

const (
	DIR_L  Dir = 0b01 // L direction: "left" or "local"
	DIR_R  Dir = 0b10 // R direction: "right" or "remote"
	DIR_LR Dir = 0b11 // LR direction: both "left" and "right"
)

func DirString

func DirString(s string) (Dir, error)

DirString converts string to Dir

func (Dir) Flip

func (d Dir) Flip() Dir

Flip returns the opposite direction

func (Dir) String

func (d Dir) String() string

String converts Dir to string

Jump to

Keyboard shortcuts

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