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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
Commits
1e202d1c
Commit
1e202d1c
authored
Jul 05, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
46b8b4f7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
150 additions
and
151 deletions
+150
-151
go/neo/proto/proto.go
go/neo/proto/proto.go
+149
-150
go/neo/proto/proto_vs_py_test.go
go/neo/proto/proto_vs_py_test.go
+1
-1
No files found.
go/neo/proto/proto.go
View file @
1e202d1c
...
...
@@ -67,8 +67,8 @@ package proto
// TODO work this out
import
(
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/go123/mem"
"lab.nexedi.com/kirr/neo/go/zodb"
"lab.nexedi.com/kirr/neo/go/internal/packed"
...
...
@@ -93,7 +93,6 @@ const (
// answerBit is set in message code in answer messages for compatibility with neo/py
answerBit
=
0x8000
//INVALID_UUID UUID = 0
// XXX -> zodb?
...
...
@@ -383,10 +382,10 @@ type AcceptIdentification struct {
}
// Check if a peer is still alive. Any -> Any.
type
Ping
struct
{}
type
Ping
struct
{}
//neo:proto answer
type
Pong
struct
{}
type
Pong
struct
{}
// Tell peer it can close the connection if it has finished with us. Any -> Any
type
CloseClient
struct
{
...
...
@@ -477,14 +476,14 @@ type StopOperation struct {
// Ask unfinished transactions S -> PM.
// Answer unfinished transactions PM -> S.
type
UnfinishedTransactions
struct
{
RowList
[]
struct
{
RowList
[]
struct
{
Offset
uint32
// PNumber XXX -> Pid
}
}
type
AnswerUnfinishedTransactions
struct
{
MaxTID
zodb
.
Tid
TidList
[]
struct
{
TidList
[]
struct
{
UnfinishedTID
zodb
.
Tid
}
}
...
...
@@ -650,7 +649,7 @@ type StoreTransaction struct {
OidList
[]
zodb
.
Oid
}
type
AnswerStoreTransaction
struct
{}
type
AnswerStoreTransaction
struct
{}
// Ask to store a transaction. C -> S.
// Answer if transaction has been stored. S -> C.
...
...
@@ -658,7 +657,7 @@ type VoteTransaction struct {
Tid
zodb
.
Tid
}
type
AnswerVoteTransaction
struct
{}
type
AnswerVoteTransaction
struct
{}
// Ask a stored object by its OID and a serial or a TID if given. If a serial
// is specified, the specified revision of an object will be returned. If
...
...
go/neo/proto/proto_vs_py_test.go
View file @
1e202d1c
...
...
@@ -32,7 +32,7 @@ import (
// verify that message codes are the same in between py and go.
func
TestMsgCodeVsPy
(
t
*
testing
.
T
)
{
goMsgRegistry
:=
map
[
uint16
]
string
{}
// code -> packet name
for
code
,
pktType
:=
range
msgTypeRegistry
{
for
code
,
pktType
:=
range
msgTypeRegistry
{
goMsgRegistry
[
code
]
=
pktType
.
Name
()
}
...
...
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