Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
878bf8ca
Commit
878bf8ca
authored
Sep 03, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
ff786dd0
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
304 additions
and
348 deletions
+304
-348
go/neo/proto.go
go/neo/proto.go
+10
-10
go/neo/zproto-marshal.go
go/neo/zproto-marshal.go
+294
-338
No files found.
go/neo/proto.go
View file @
878bf8ca
...
...
@@ -28,6 +28,7 @@ package neo
// If a structure is defined only to represent basic type that is included in
// several messages and does not itself denote a separate message, its
// definition is prefixed with `//neo:proto typeonly` comment.
//
// XXX neo:proto answerto x? (btw just needs "answer" flag)
// TODO regroup messages definitions to stay more close to 1 communication topic
...
...
@@ -292,18 +293,8 @@ type Error struct {
Message
string
}
// Check if a peer is still alive. Any -> Any.
type
Ping
struct
{
// TODO _answer = PFEmpty
}
// Tell peer it can close the connection if it has finished with us. Any -> Any
type
CloseClient
struct
{
}
// Request a node identification. This must be the first message for any
// connection. Any -> Any.
// XXX must go before ping
type
RequestIdentification
struct
{
NodeType
NodeType
// XXX name
UUID
NodeUUID
...
...
@@ -321,6 +312,15 @@ type AcceptIdentification struct {
YourUUID
NodeUUID
}
// Check if a peer is still alive. Any -> Any.
type
Ping
struct
{
// TODO _answer = PFEmpty
}
// Tell peer it can close the connection if it has finished with us. Any -> Any
type
CloseClient
struct
{
}
// Ask current primary master's uuid. CTL -> A.
type
PrimaryMaster
struct
{
}
...
...
go/neo/zproto-marshal.go
View file @
878bf8ca
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment