mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
update sproto schema
This commit is contained in:
@@ -158,10 +158,11 @@ A schema text can be self-described by the sproto schema language.
|
|||||||
.type {
|
.type {
|
||||||
.field {
|
.field {
|
||||||
name 0 : string
|
name 0 : string
|
||||||
type 1 : string
|
buildin 1 : integer
|
||||||
id 2 : integer
|
type 2 : integer
|
||||||
array 3 : boolean
|
tag 3 : integer
|
||||||
key 4 : integer # optional tag for map
|
array 4 : boolean
|
||||||
|
key 5 : integer # If key exists, array must be true, and it's a map.
|
||||||
}
|
}
|
||||||
name 0 : string
|
name 0 : string
|
||||||
fields 1 : *field
|
fields 1 : *field
|
||||||
@@ -169,9 +170,9 @@ A schema text can be self-described by the sproto schema language.
|
|||||||
|
|
||||||
.protocol {
|
.protocol {
|
||||||
name 0 : string
|
name 0 : string
|
||||||
id 1 : integer
|
tag 1 : integer
|
||||||
request 2 : string
|
request 2 : integer # index
|
||||||
response 3 : string
|
response 3 : integer # index
|
||||||
}
|
}
|
||||||
|
|
||||||
.group {
|
.group {
|
||||||
|
|||||||
Reference in New Issue
Block a user