Documentation ¶
Index ¶
- type Capacities
- func (c *Capacities) Capacity(from, to uint16) uint64
- func (c *Capacities) CapacityEgress(egress uint16) uint64
- func (c *Capacities) CapacityIngress(ingress uint16) uint64
- func (c *Capacities) EgressInterfaces() []uint16
- func (c *Capacities) IngressInterfaces() []uint16
- func (c Capacities) MarshalJSON() ([]byte, error)
- func (c *Capacities) UnmarshalJSON(b []byte) error
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.
Click to show internal directories.
Click to hide internal directories.