conf

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capacities

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

Capacities aka capacity matrix.

func (*Capacities) Capacity

func (c *Capacities) Capacity(from, to uint16) uint64

func (*Capacities) CapacityEgress

func (c *Capacities) CapacityEgress(egress uint16) uint64

func (*Capacities) CapacityIngress

func (c *Capacities) CapacityIngress(ingress uint16) uint64

func (*Capacities) EgressInterfaces

func (c *Capacities) EgressInterfaces() []uint16

func (*Capacities) IngressInterfaces

func (c *Capacities) IngressInterfaces() []uint16

func (Capacities) MarshalJSON

func (c Capacities) MarshalJSON() ([]byte, error)

MarshalJSON serializes the internal json-friendly structure.

func (*Capacities) UnmarshalJSON

func (c *Capacities) UnmarshalJSON(b []byte) error

UnmarshalJSON deserializes into the json-aware internal data structure.

Jump to

Keyboard shortcuts

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