17 lines
342 B
Nim
17 lines
342 B
Nim
|
import tables
|
||
|
import types
|
||
|
|
||
|
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]
|