Use BiggestInt in schemas
This commit is contained in:
parent
6281f5467f
commit
6647aeb83b
|
@ -8,7 +8,7 @@ type
|
|||
AnyAtomBool* = bool
|
||||
AnyAtomFloat* = float32
|
||||
AnyAtomDouble* = float64
|
||||
AnyAtomInt* = int
|
||||
AnyAtomInt* = BiggestInt
|
||||
AnyAtomString* = string
|
||||
AnyAtomBytes* = seq[byte]
|
||||
AnyAtomSymbol* = Symbol
|
||||
|
|
|
@ -19,7 +19,7 @@ type
|
|||
`handle`*: Handle
|
||||
|
||||
Extension*[E] {.preservesRecord: "label".} = ref object
|
||||
`addFieldsCalledWithSimplePattern`*: seq[Preserve[E]]
|
||||
`data`*: seq[Preserve[E]]
|
||||
|
||||
Sync*[E] {.preservesRecord: "sync".} = ref object
|
||||
`peer`*: Preserve[E]
|
||||
|
@ -28,9 +28,9 @@ type
|
|||
`oid`*: Oid
|
||||
`event`*: Event[E]
|
||||
|
||||
Oid* = int
|
||||
Oid* = BiggestInt
|
||||
Assertion*[E] = Preserve[E]
|
||||
Handle* = int
|
||||
Handle* = BiggestInt
|
||||
PacketKind* {.pure.} = enum
|
||||
`Turn`, `Error`, `Extension`
|
||||
`Packet`*[E] {.preservesOr.} = ref object
|
||||
|
|
|
@ -3,7 +3,7 @@ import
|
|||
std/typetraits, preserves
|
||||
|
||||
type
|
||||
UserId* = int
|
||||
UserId* = BiggestInt
|
||||
NickConflict* {.preservesRecord: "nickConflict".} = object
|
||||
|
||||
NickClaimResponseKind* {.pure.} = enum
|
||||
|
|
|
@ -5,7 +5,7 @@ import
|
|||
type
|
||||
CreditAmountKind* {.pure.} = enum
|
||||
`count`, `unbounded`
|
||||
CreditAmountCount* = int
|
||||
CreditAmountCount* = BiggestInt
|
||||
`CreditAmount`* {.preservesOr.} = object
|
||||
case orKind*: CreditAmountKind
|
||||
of CreditAmountKind.`count`:
|
||||
|
@ -82,7 +82,7 @@ type
|
|||
ModeKind* {.pure.} = enum
|
||||
`bytes`, `lines`, `packet`, `object`
|
||||
ModePacket* {.preservesRecord: "packet".} = object
|
||||
`size`*: int
|
||||
`size`*: BiggestInt
|
||||
|
||||
ModeObject*[E] {.preservesRecord: "object".} = ref object
|
||||
`description`*: Preserve[E]
|
||||
|
|
|
@ -35,7 +35,7 @@ type
|
|||
`template`*: Template[E]
|
||||
|
||||
TRef* {.preservesRecord: "ref".} = object
|
||||
`binding`*: int
|
||||
`binding`*: BiggestInt
|
||||
|
||||
PBind*[E] {.preservesRecord: "bind".} = ref object
|
||||
`pattern`*: Pattern[E]
|
||||
|
@ -128,12 +128,12 @@ type
|
|||
of WireRefKind.`yours`:
|
||||
`yours`*: WireRefYours[E]
|
||||
|
||||
|
||||
|
||||
TAttenuate*[E] {.preservesRecord: "attenuate".} = ref object
|
||||
`template`*: Template[E]
|
||||
`attenuation`*: Attenuation[E]
|
||||
|
||||
Oid* = int
|
||||
Oid* = BiggestInt
|
||||
Alts*[E] {.preservesRecord: "or".} = ref object
|
||||
`alternatives`*: seq[Rewrite[E]]
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import
|
|||
type
|
||||
TcpLocal* {.preservesRecord: "tcp-local".} = object
|
||||
`host`*: string
|
||||
`port`*: int
|
||||
`port`*: BiggestInt
|
||||
|
||||
TcpPeerInfo*[E] {.preservesRecord: "tcp-peer".} = ref object
|
||||
`handle`*: Preserve[E]
|
||||
|
@ -14,7 +14,7 @@ type
|
|||
|
||||
TcpRemote* {.preservesRecord: "tcp-remote".} = object
|
||||
`host`*: string
|
||||
`port`*: int
|
||||
`port`*: BiggestInt
|
||||
|
||||
proc `$`*[E](x: TcpPeerInfo[E]): string =
|
||||
`$`(toPreserve(x, E))
|
||||
|
|
|
@ -13,7 +13,7 @@ type
|
|||
|
||||
Tcp* {.preservesRecord: "tcp".} = object
|
||||
`host`*: string
|
||||
`port`*: int
|
||||
`port`*: BiggestInt
|
||||
|
||||
proc `$`*(x: WebSocket | Stdio | Unix | Tcp): string =
|
||||
`$`(toPreserve(x))
|
||||
|
|
Loading…
Reference in New Issue