Implementation of postgres store
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"github.com/micro/go-micro/config/options"
|
||||
)
|
||||
|
||||
// Set the nodes used to back the store
|
||||
// Nodes is a list of nodes used to back the store
|
||||
func Nodes(a ...string) options.Option {
|
||||
return options.WithValue("store.nodes", a)
|
||||
}
|
||||
@@ -13,3 +13,9 @@ func Nodes(a ...string) options.Option {
|
||||
func Prefix(p string) options.Option {
|
||||
return options.WithValue("store.prefix", p)
|
||||
}
|
||||
|
||||
// Namespace offers a way to have multiple isolated
|
||||
// stores in the same backend, if supported.
|
||||
func Namespace(n string) options.Option {
|
||||
return options.WithValue("store.namespace", n)
|
||||
}
|
||||
|
Reference in New Issue
Block a user