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
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
d237f4fe
Commit
d237f4fe
authored
Apr 25, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
133a58d9
Changes
18
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
139 additions
and
33 deletions
+139
-33
go/neo/cmd/neo/neostorage.go
go/neo/cmd/neo/neostorage.go
+0
-0
go/neo/proto-marshal.go
go/neo/proto-marshal.go
+0
-0
go/neo/proto.go
go/neo/proto.go
+1
-1
go/neo/server.go
go/neo/server.go
+1
-1
go/neo/storage/storage.go
go/neo/storage/storage.go
+0
-0
go/zodb/storage/fs1/cmd/fstail/fstail.go
go/zodb/storage/fs1/cmd/fstail/fstail.go
+6
-1
go/zodb/storage/fs1/cmd/fstail/fstail_test.go
go/zodb/storage/fs1/cmd/fstail/fstail_test.go
+16
-1
go/zodb/storage/fs1/filestorage.go
go/zodb/storage/fs1/filestorage.go
+7
-2
go/zodb/storage/fs1/filestorage_test.go
go/zodb/storage/fs1/filestorage_test.go
+6
-2
go/zodb/storage/fs1/fsb/cmp.go
go/zodb/storage/fs1/fsb/cmp.go
+2
-0
go/zodb/storage/fs1/fsb/gen.go
go/zodb/storage/fs1/fsb/gen.go
+0
-3
go/zodb/storage/fs1/index.go
go/zodb/storage/fs1/index.go
+7
-2
go/zodb/storage/fs1/index_test.go
go/zodb/storage/fs1/index_test.go
+6
-2
go/zodb/str.go
go/zodb/str.go
+17
-3
go/zodb/str_test.go
go/zodb/str_test.go
+18
-4
go/zodb/time.go
go/zodb/time.go
+17
-3
go/zodb/time_test.go
go/zodb/time_test.go
+18
-5
go/zodb/zodb.go
go/zodb/zodb.go
+17
-3
No files found.
go/neo/cmd/neo
storage-go
/neostorage.go
→
go/neo/cmd/neo/neostorage.go
View file @
d237f4fe
File moved
go/neo/marshal.go
→
go/neo/
proto-
marshal.go
View file @
d237f4fe
File moved
go/neo/proto.go
View file @
d237f4fe
// NEO. Protocol description
//go:generate sh -c "go run protogen.go >marshal.go"
//go:generate sh -c "go run protogen.go >
proto-
marshal.go"
package
neo
...
...
go/neo/server.go
View file @
d237f4fe
...
...
@@ -20,7 +20,7 @@ type Server interface {
//
// the listener is closed when Serve returns.
func
Serve
(
ctx
context
.
Context
,
l
*
Listener
,
srv
Server
)
error
{
fmt
.
Printf
(
"stor: serving on %s ...
\n
"
,
l
.
Addr
())
fmt
.
Printf
(
"stor: serving on %s ...
\n
"
,
l
.
Addr
())
// XXX 'stor' -> generic
// close listener when either cancelling or returning (e.g. due to an error)
// ( when cancelling - listener close will signal to all accepts to
...
...
go/neo/storage.go
→
go/neo/storage
/storage
.go
View file @
d237f4fe
File moved
go/zodb/storage/fs1/cmd/fstail/fstail.go
View file @
d237f4fe
...
...
@@ -2,9 +2,14 @@
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version
2
, or (at your
// it under the terms of the GNU General Public License version
3
, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
...
...
go/zodb/storage/fs1/cmd/fstail/fstail_test.go
View file @
d237f4fe
// TODO copyright/license
// Copyright (C) 2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
package
main
...
...
go/zodb/storage/fs1/filestorage.go
View file @
d237f4fe
...
...
@@ -2,9 +2,14 @@
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version
2
, or (at your
// it under the terms of the GNU General Public License version
3
, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
...
...
@@ -13,7 +18,7 @@
// XXX partly based on code from ZODB ?
// TODO link to format in zodb/py
//
FileStorage v1
. XXX text
//
Package fs1 implements so-called FileStorage v1 ZODB storage
. XXX text
package
fs1
import
(
...
...
go/zodb/storage/fs1/filestorage_test.go
View file @
d237f4fe
...
...
@@ -2,15 +2,19 @@
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version
2
, or (at your
// it under the terms of the GNU General Public License version
3
, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
// FileStorage v1. Tests XXX text
package
fs1
import
(
...
...
go/zodb/storage/fs1/fsb/cmp.go
View file @
d237f4fe
package
fsb
//go:generate ./gen-fsbtree
import
"../../../../zodb"
// comparison function for fsbTree
...
...
go/zodb/storage/fs1/fsb/gen.go
deleted
100644 → 0
View file @
133a58d9
package
fsb
//go:generate ./gen-fsbtree
go/zodb/storage/fs1/index.go
View file @
d237f4fe
...
...
@@ -2,9 +2,14 @@
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version
2
, or (at your
// it under the terms of the GNU General Public License version
3
, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
...
...
@@ -13,8 +18,8 @@
// XXX partly based on code from ZODB ?
// TODO link to format in zodb/py
// FileStorage v1. Index
package
fs1
// FileStorage v1. Index
import
(
"bytes"
...
...
go/zodb/storage/fs1/index_test.go
View file @
d237f4fe
...
...
@@ -2,15 +2,19 @@
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version
2
, or (at your
// it under the terms of the GNU General Public License version
3
, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
// FileStorage v1. Index. Tests
package
fs1
//go:generate ./py/gen-testdata
...
...
go/zodb/str.go
View file @
d237f4fe
// TODO copyright / license
// formatting and parsing for basic zodb types
// Copyright (C) 2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
package
zodb
// formatting and parsing for basic zodb types
import
(
"fmt"
...
...
go/zodb/str_test.go
View file @
d237f4fe
package
zodb
// Copyright (C) 2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
import
(
"testing"
)
package
zodb
import
"testing"
func
TestParseHex64
(
t
*
testing
.
T
)
{
var
testv
=
[]
struct
{
in
string
;
out
uint64
;
estr
string
}
{
...
...
go/zodb/time.go
View file @
d237f4fe
// TODO copyright / license
// tid connection with time
// Copyright (C) 2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
package
zodb
// tid connection with time
import
(
"time"
...
...
go/zodb/time_test.go
View file @
d237f4fe
// TODO copyright / license
// TODO what it is
// Copyright (C) 2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
package
zodb
// TODO what it is
import
(
"testing"
)
import
"testing"
func
TestTidTime
(
t
*
testing
.
T
)
{
var
testv
=
[]
struct
{
tid
Tid
;
timeStr
string
}
{
...
...
go/zodb/zodb.go
View file @
d237f4fe
// TODO copyright / license
// Package zodb defines types, interfaces and errors used in ZODB databases
// Copyright (C) 2016-2017 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com>
//
// This program is free software: you can Use, Study, Modify and Redistribute
// it under the terms of the GNU General Public License version 3, or (at your
// option) any later version, as published by the Free Software Foundation.
//
// You can also Link and Combine this program with other software covered by
// the terms of any of the Open Source Initiative approved licenses and Convey
// the resulting work. Corresponding source of such a combination shall include
// the source code for all other software used.
//
// This program is distributed WITHOUT ANY WARRANTY; without even the implied
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
//
// See COPYING file for full licensing terms.
// XXX partly based on ZODB/py
// Package zodb defines types, interfaces and errors used in ZODB databases
package
zodb
import
(
...
...
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