diff --git a/go/neo/client/client.go b/go/neo/client/client.go index 6922eef93b7589ded0af7ff5696c22d6f2277b27..a04845bb402c077856f82fa352f76504fdc1dd0d 100644 --- a/go/neo/client/client.go +++ b/go/neo/client/client.go @@ -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{ diff --git a/go/zodb/open.go b/go/zodb/open.go index 1f1c25d5ffb5cc75746fba671cb8291ece878a16..2c6dd7c5952b757c5fa2f5fe6abc16d600d069ac 100644 --- a/go/zodb/open.go +++ b/go/zodb/open.go @@ -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://