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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
97214cb9
Commit
97214cb9
authored
Jul 20, 2018
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! go/zodb: Tweak documentation a bit so it renders more well in godoc
Missed few places in
8685b742
.
parent
8685b742
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
go/zodb/cache_test.go
go/zodb/cache_test.go
+2
-2
go/zodb/zodb.go
go/zodb/zodb.go
+3
-3
No files found.
go/zodb/cache_test.go
View file @
97214cb9
...
@@ -636,7 +636,7 @@ func (c *Checker) assertEq(a, b interface{}) {
...
@@ -636,7 +636,7 @@ func (c *Checker) assertEq(a, b interface{}) {
// ----------------------------------------
// ----------------------------------------
// noopStorage is dummy StorLoader which for any oid/xid always returns 1-byte data
// noopStorage is dummy StorLoader which for any oid/xid always returns 1-byte data
.
type
noopStorage
struct
{}
type
noopStorage
struct
{}
var
noopData
=
[]
byte
{
0
}
var
noopData
=
[]
byte
{
0
}
...
@@ -648,7 +648,7 @@ func (s *noopStorage) Load(_ context.Context, xid Xid) (buf *mem.Buf, serial Tid
...
@@ -648,7 +648,7 @@ func (s *noopStorage) Load(_ context.Context, xid Xid) (buf *mem.Buf, serial Tid
return
mkbuf
(
noopData
),
1
,
nil
return
mkbuf
(
noopData
),
1
,
nil
}
}
// benchLoad serially benchmarks a StorLoader - either storage directly or a cache on top of it
// benchLoad serially benchmarks a StorLoader - either storage directly or a cache on top of it
.
//
//
// oid accessed are [0, worksize)
// oid accessed are [0, worksize)
func
benchLoad
(
b
*
testing
.
B
,
l
StorLoader
,
worksize
int
)
{
func
benchLoad
(
b
*
testing
.
B
,
l
StorLoader
,
worksize
int
)
{
...
...
go/zodb/zodb.go
View file @
97214cb9
...
@@ -182,7 +182,7 @@ func (e *NoDataError) Error() string {
...
@@ -182,7 +182,7 @@ func (e *NoDataError) Error() string {
}
}
}
}
// OpError is the error returned by IStorageDriver operations
// OpError is the error returned by IStorageDriver operations
.
type
OpError
struct
{
type
OpError
struct
{
URL
string
// URL of the storage
URL
string
// URL of the storage
Op
string
// operation that failed
Op
string
// operation that failed
...
@@ -204,7 +204,7 @@ func (e *OpError) Cause() error {
...
@@ -204,7 +204,7 @@ func (e *OpError) Cause() error {
}
}
// IStorage is the interface provided by opened ZODB storage
// IStorage is the interface provided by opened ZODB storage
.
type
IStorage
interface
{
type
IStorage
interface
{
IStorageDriver
IStorageDriver
...
@@ -219,7 +219,7 @@ type IStorage interface {
...
@@ -219,7 +219,7 @@ type IStorage interface {
Prefetch
(
ctx
context
.
Context
,
xid
Xid
)
Prefetch
(
ctx
context
.
Context
,
xid
Xid
)
}
}
// IStorageDriver is the raw interface provided by ZODB storage drivers
// IStorageDriver is the raw interface provided by ZODB storage drivers
.
type
IStorageDriver
interface
{
type
IStorageDriver
interface
{
// URL returns URL of how the storage was opened
// URL returns URL of how the storage was opened
URL
()
string
URL
()
string
...
...
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