Move out consul sync/lock and store. Move data/store to store

This commit is contained in:
Asim Aslam
2019-10-03 09:46:20 +01:00
parent b81bb07afc
commit b5ca40a91a
12 changed files with 213 additions and 209 deletions

15
store/options.go Normal file
View File

@@ -0,0 +1,15 @@
package store
import (
"github.com/micro/go-micro/config/options"
)
// Set the nodes used to back the store
func Nodes(a ...string) options.Option {
return options.WithValue("store.nodes", a)
}
// Prefix sets a prefix to any key ids used
func Prefix(p string) options.Option {
return options.WithValue("store.prefix", p)
}