Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
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
Stefane Fermigier
neo
Commits
776e85be
Commit
776e85be
authored
Sep 03, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
3e4d0dd7
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
215 additions
and
203 deletions
+215
-203
go/neo/proto.go
go/neo/proto.go
+9
-5
go/neo/zproto-marshal.go
go/neo/zproto-marshal.go
+206
-198
No files found.
go/neo/proto.go
View file @
776e85be
...
@@ -491,12 +491,15 @@ type NotifyTransactionFinished struct {
...
@@ -491,12 +491,15 @@ type NotifyTransactionFinished struct {
MaxTID
zodb
.
Tid
MaxTID
zodb
.
Tid
}
}
// XXX move vvv
/*
// Lock information on a transaction. PM -> S.
// Lock information on a transaction. PM -> S.
// Notify information on a transaction locked. S -> PM.
// Notify information on a transaction locked. S -> PM.
type LockInformation struct {
type LockInformation struct {
Ttid zodb.Tid
Ttid zodb.Tid
Tid zodb.Tid
Tid zodb.Tid
}
}
*/
// XXX AnswerInformationLocked ?
// XXX AnswerInformationLocked ?
type
AnswerLockInformation
struct
{
type
AnswerLockInformation
struct
{
...
@@ -517,12 +520,11 @@ type UnlockInformation struct {
...
@@ -517,12 +520,11 @@ type UnlockInformation struct {
// Ask new object IDs. C -> PM.
// Ask new object IDs. C -> PM.
// Answer new object IDs. PM -> C.
// Answer new object IDs. PM -> C.
type
Generate
OIDs
struct
{
type
AskNew
OIDs
struct
{
NumOIDs
uint32
// PNumber
NumOIDs
uint32
// PNumber
}
}
// XXX answer_new_oids ?
type
AnswerNewOIDs
struct
{
type
AnswerGenerateOIDs
struct
{
OidList
[]
zodb
.
Oid
OidList
[]
zodb
.
Oid
}
}
...
@@ -592,16 +594,18 @@ type StoreTransaction struct {
...
@@ -592,16 +594,18 @@ type StoreTransaction struct {
Description
string
Description
string
Extension
string
Extension
string
OidList
[]
zodb
.
Oid
OidList
[]
zodb
.
Oid
// TODO _answer = PFEmpty
}
}
type
AnswerStoreTransaction
struct
{}
// Ask to store a transaction. C -> S.
// Ask to store a transaction. C -> S.
// Answer if transaction has been stored. S -> C.
// Answer if transaction has been stored. S -> C.
type
VoteTransaction
struct
{
type
VoteTransaction
struct
{
Tid
zodb
.
Tid
Tid
zodb
.
Tid
// TODO _answer = PFEmpty
}
}
type
AnswerVoteTransaction
struct
{}
// Ask a stored object by its OID and a serial or a TID if given. If a serial
// 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
// is specified, the specified revision of an object will be returned. If
// a TID is specified, an object right before the TID will be returned. C -> S.
// a TID is specified, an object right before the TID will be returned. C -> S.
...
...
go/neo/zproto-marshal.go
View file @
776e85be
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