mirror of
https://github.com/codex-storage/nim-json-rpc.git
synced 2025-02-24 08:58:18 +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
|
# Procedure signature accepted as an RPC call by server
|
||||||
RpcProc* = proc (params: JsonNode): Future[JsonNode]
|
RpcProc* = proc (params: JsonNode): Future[JsonNode]
|
||||||
|
|
||||||
RpcClientTransport* = concept trans, type t
|
RpcClientTransport* = concept t
|
||||||
trans.write(var string) is Future[int]
|
t.write(var string) is Future[int]
|
||||||
trans.readLine(int) is Future[string]
|
t.readLine(int) is Future[string]
|
||||||
|
|
||||||
RpcServerTransport* = concept t
|
RpcServerTransport* = concept t
|
||||||
t.start
|
t.start
|
||||||
|
Loading…
x
Reference in New Issue
Block a user