1 2
import PrefixMap from '../routing/prefix-map'
2
import { Route } from '../types/routing'
3 2
import { uuid } from '../lib/utils'
4

5
export interface RouteUpdate {
6
  epoch: number,
7
  prefix: string
8
  route?: Route
9
}
10

11 2
export default class ForwardingRoutingTable extends PrefixMap<RouteUpdate> {
12 2
  public routingTableId: string = uuid()
13 2
  public log: (RouteUpdate | null)[] = []
14 2
  public currentEpoch: number = 0
15
}

Read our documentation on viewing source code .

Loading