mirror of
https://github.com/codex-storage/nim-json-rpc.git
synced 2025-02-23 16:38:22 +00:00
Updated concept to remove type
This commit is contained in:
parent
bdf47fd2ed
commit
6e81e6c5f5
@ -20,9 +20,9 @@ type
|
||||
# Procedure signature accepted as an RPC call by server
|
||||
RpcProc* = proc (params: JsonNode): Future[JsonNode]
|
||||
|
||||
RpcClientTransport* = concept trans, type t
|
||||
trans.write(var string) is Future[int]
|
||||
trans.readLine(int) is Future[string]
|
||||
RpcClientTransport* = concept t
|
||||
t.write(var string) is Future[int]
|
||||
t.readLine(int) is Future[string]
|
||||
|
||||
RpcServerTransport* = concept t
|
||||
t.start
|
||||
|
Loading…
x
Reference in New Issue
Block a user