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
62117b70
Commit
62117b70
authored
Sep 01, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4eaaf186
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
go/neo/client/client.go
go/neo/client/client.go
+4
-3
go/zodb/open.go
go/zodb/open.go
+7
-4
No files found.
go/neo/client/client.go
View file @
62117b70
...
...
@@ -17,7 +17,7 @@
// See COPYING file for full licensing terms.
// See https://www.nexedi.com/licensing for rationale and options.
// Package client provides ZODB interface for accessing NEO cluster.
// Package client provides ZODB
storage
interface for accessing NEO cluster.
package
client
import
(
...
...
@@ -41,7 +41,7 @@ import (
"lab.nexedi.com/kirr/neo/go/xcommon/xnet"
)
// Client talks to NEO cluster and exposes access to it via ZODB interfaces
// Client talks to NEO cluster and exposes access to it via ZODB interfaces
.
type
Client
struct
{
node
neo
.
NodeCommon
...
...
@@ -73,7 +73,8 @@ func (c *Client) StorageName() string {
}
// NewClient creates new client node.
// it will connect to master @masterAddr and identify with sepcified cluster name
//
// It will connect to master @masterAddr and identify with sepcified cluster name.
func
NewClient
(
clusterName
,
masterAddr
string
,
net
xnet
.
Networker
)
*
Client
{
cli
:=
&
Client
{
node
:
neo
.
NodeCommon
{
...
...
go/zodb/open.go
View file @
62117b70
...
...
@@ -42,12 +42,15 @@ func RegisterStorage(scheme string, opener StorageOpener) {
storageRegistry
[
scheme
]
=
opener
}
// OpenStorage opens ZODB storage by URL
// OpenStorage opens ZODB storage by URL.
//
// Only URL schemes registered to zodb package are handled.
// Users should user import in storage packages they use or zodb/wks package to
// get support work well-known storages.
// Storage authors should register their storages with RegisterStorage
// Users should import in storage packages they use or zodb/wks package to
// get support for well-known storages.
//
// Storage authors should register their storages with RegisterStorage.
//
// TODO automatically wrap a storage with Cache.
// TODO readonly
func
OpenStorageURL
(
ctx
context
.
Context
,
storageURL
string
)
(
IStorage
,
error
)
{
// no scheme -> file://
...
...
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