store: Move initialize type next to initializers.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2015-05-14 22:10:19 -07:00
parent f87505e2e7
commit 2c1040971a

View File

@@ -22,9 +22,6 @@ const (
// and is triggered on key change
type WatchCallback func(entries ...*KVPair)
// Initialize creates a new Store object, initializing the client
type Initialize func(addrs []string, options *Config) (Store, error)
// Store represents the backend K/V storage
// Each store should support every call listed
// here. Or it couldn't be implemented as a K/V
@@ -86,6 +83,9 @@ type Locker interface {
Unlock() error
}
// Initialize creates a new Store object, initializing the client
type Initialize func(addrs []string, options *Config) (Store, error)
var (
// Backend initializers
initializers = map[Backend]Initialize{