diff --git a/pkg/store/store.go b/pkg/store/store.go index 8c3b2f6877..a744e00404 100644 --- a/pkg/store/store.go +++ b/pkg/store/store.go @@ -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{