UNPKG

750 BSource Map (JSON)View Raw
1{"version":3,"file":"forwarding-routing-table.js","sourceRoot":"","sources":["forwarding-routing-table.ts"],"names":[],"mappings":";;AAAA,sDAA6C;AAE7C,wCAAmC;AAQnC,MAAqB,sBAAuB,SAAQ,oBAAsB;IAA1E;;QACS,mBAAc,GAAW,YAAI,EAAE,CAAA;QAC/B,QAAG,GAA2B,EAAE,CAAA;QAChC,iBAAY,GAAW,CAAC,CAAA;IACjC,CAAC;CAAA;AAJD,yCAIC","sourcesContent":["import PrefixMap from '../routing/prefix-map'\nimport { Route } from '../types/routing'\nimport { uuid } from '../lib/utils'\n\nexport interface RouteUpdate {\n epoch: number,\n prefix: string\n route?: Route\n}\n\nexport default class ForwardingRoutingTable extends PrefixMap<RouteUpdate> {\n public routingTableId: string = uuid()\n public log: (RouteUpdate | null)[] = []\n public currentEpoch: number = 0\n}\n"]}
\No newline at end of file