2020-02-07 14:09:42 +01:00
|
|
|
import tables
|
2021-03-13 20:06:02 +01:00
|
|
|
import nimhafas
|
2020-02-07 14:09:42 +01:00
|
|
|
|
|
|
|
type
|
|
|
|
moreJourneysMode* = enum
|
|
|
|
later, earlier
|
|
|
|
|
|
|
|
CacheObject* = object
|
|
|
|
version*: int
|
|
|
|
reqId*: string
|
|
|
|
minId*: int
|
|
|
|
maxId*: int
|
|
|
|
earlierRef*: string
|
|
|
|
laterRef*: string
|
|
|
|
lastUpdated*: int64
|
|
|
|
params*: JourneysParams
|
|
|
|
journeys*: Table[string, Journey]
|