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
4a1c56ee
Commit
4a1c56ee
authored
May 04, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fb5d9b99
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
10 deletions
+24
-10
go/NOTES
go/NOTES
+9
-9
go/neo/master.go
go/neo/master.go
+14
-0
go/neo/proto.go
go/neo/proto.go
+1
-1
No files found.
go/NOTES
View file @
4a1c56ee
...
...
@@ -380,7 +380,7 @@ Partition Table (general & current-py)
#Np (how-many partitions) #R (replication factor)
Cell
.node (-> .
uu
id, .addr)
.node (-> .
node
id, .addr)
.state
.backup_tid # last tid this cell has all data for
...
...
@@ -667,7 +667,7 @@ VerificationManager < BaseServiceHandler
Node
.state
.address
.
uu
id
.
node
id
.manager # -> NodeManager
.connection
...
...
@@ -676,7 +676,7 @@ Node
NodeManager
[]Node
{} address -> Node
{}
uuid
-> Node
{}
nodeid
-> Node
{} type -> set<Node>
{} state -> set<Node>
...
...
@@ -731,8 +731,8 @@ Protocol
Checksum
.checksum [20]u8
UUID
.
uu
id s32 // 0 <-> None
NodeID //
UUID
.
node
id s32 // 0 <-> None
TID
.tid [8]byte // None <-> \xff*8
...
...
@@ -748,12 +748,12 @@ Float
NodeList []
type NodeType
address Address
uuid UU
ID
nodeid Node
ID
state NodeState
id_timestamp Float
CellList []
uuid UU
ID
nodeid Node
ID
state CellState
RowList []
...
...
@@ -765,7 +765,7 @@ HistoryList []
size Number // u32
UUIDList []
uuid UU
ID
nodeid Node
ID
TidList []
tid TID
...
...
@@ -792,7 +792,7 @@ CloseClient
RequestIdentification
.protocol_version PProtocol
.node_type NodeType
.
uuid UU
ID
.
nodeid Node
ID
.address Address
.name String
.id_timestamp Float
...
...
go/neo/master.go
View file @
4a1c56ee
...
...
@@ -57,6 +57,20 @@ func (m *Master) ServeClient(ctx context.Context, conn *Conn) {
// XXX +error return?
func
(
m
*
Master
)
ServeStorage
(
ctx
context
.
Context
,
conn
*
Conn
)
{
// TODO
// >Recovery
// <AnswerRecovery
// ? >UnfinishedTransactions
// ? <AnswerUnfinishedTransactions (none currently)
// <NotifyReady
// >StartOperation
// >StopOperation (on shutdown)
}
func
(
m
*
Master
)
ServeAdmin
(
ctx
context
.
Context
,
conn
*
Conn
)
{
...
...
go/neo/proto.go
View file @
4a1c56ee
...
...
@@ -676,7 +676,7 @@ type AnswerPartitionList struct {
// Ask information about nodes
// Answer information about nodes
type
X_
NodeList
struct
{
type
NodeList
struct
{
NodeType
}
...
...
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