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
fa68b9e4
Commit
fa68b9e4
authored
Nov 23, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
0b751f74
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
10 deletions
+31
-10
t/neo/cmd/neostorage-go/neostorage.go
t/neo/cmd/neostorage-go/neostorage.go
+18
-0
t/neo/proto/pkt.go
t/neo/proto/pkt.go
+1
-1
t/neo/proto/pktgen.go
t/neo/proto/pktgen.go
+0
-0
t/neo/storage/filestorage.go
t/neo/storage/filestorage.go
+1
-1
t/neo/zodb.go
t/neo/zodb.go
+11
-8
No files found.
t/neo/cmd/neostorage-go/neostorage.go
0 → 100644
View file @
fa68b9e4
// TODO copyright / license
// neostorage - run a storage node of NEO
package
main
import
(
"../../storage"
// XXX rel ok?
)
// TODO options:
// cluster, masterv, bind ...
func
main
()
{
// TODO
println
(
"TODO"
)
}
t/neo/pkt.go
→
t/neo/p
roto/p
kt.go
View file @
fa68b9e4
package
p
kt
package
p
roto
// TODO .TID -> .Tid etc ?
...
...
t/neo/pktgen.go
→
t/neo/p
roto/p
ktgen.go
View file @
fa68b9e4
File moved
t/neo/filestorage.go
→
t/neo/
storage/
filestorage.go
View file @
fa68b9e4
// XXX license
// filestorage support XXX text
package
neo
package
storage
type
FileStorage
struct
{
fd
int
...
...
t/neo/zodb.go
View file @
fa68b9e4
...
...
@@ -14,17 +14,20 @@ type Xid struct {
}
const
(
INVALID_UUID
UUID
=
0
INVALID_TID
T
ID
=
1
<<
64
-
1
// 0xffffffffffffffff TODO recheck it is the same
INVALID_OID
O
ID
=
0xffffffffffffffff
// 1<<64 - 1
ZERO_TID
T
ID
=
0
// XXX or simply TID{} ? // XXX -> TID0 ?
ZERO_OID
O
ID
=
0
// XXX or simply OID{} ? // XXX -> OID0
//
INVALID_UUID UUID = 0
INVALID_TID
T
id
=
1
<<
64
-
1
// 0xffffffffffffffff TODO recheck it is the same
INVALID_OID
O
id
=
0xffffffffffffffff
// 1<<64 - 1
ZERO_TID
T
id
=
0
// XXX or simply TID{} ? // XXX -> TID0 ?
ZERO_OID
O
id
=
0
// XXX or simply OID{} ? // XXX -> OID0
// OID_LEN = 8
// TID_LEN = 8
MAX_TID
T
ID
=
0x7fffffffffffffff
// SQLite does not accept numbers above 2^63-1 // XXX -> TIDMAX ?
MAX_TID
T
id
=
0x7fffffffffffffff
// SQLite does not accept numbers above 2^63-1 // XXX -> TIDMAX ?
)
// ----------------------------------------
type
TxnStatus
byte
// TODO Tid.String(), Oid.String() +verbose, scanning (?)
...
...
@@ -32,7 +35,7 @@ type TxnStatus byte
// Information about single storage transaction
// XXX -> storage.ITransactionInformation
//type IStorageTransactionInformation interface {
type
I
StorageTransactionInformation
struct
{
type
StorageTransactionInformation
struct
{
Tid
Tid
Status
TxnStatus
User
[]
byte
...
...
@@ -40,7 +43,7 @@ type IStorageTransactionInformation struct {
Extension
[]
byte
// TODO iter -> IStorageRecordInformation
Iter
()
IStorageRecordIterator
Iter
IStorageRecordIterator
}
// Information about single storage record
...
...
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