Restructure go-micro layout and plugins
This commit is contained in:
@@ -9,12 +9,16 @@ type Store interface {
|
||||
|
||||
type options struct{}
|
||||
|
||||
type Options func(*options)
|
||||
type Option func(*options)
|
||||
|
||||
var (
|
||||
DefaultStore = NewConsulStore([]string{})
|
||||
DefaultStore = newConsulStore([]string{})
|
||||
)
|
||||
|
||||
func NewStore(addrs []string, opt ...Option) Store {
|
||||
return newConsulStore(addrs, opt...)
|
||||
}
|
||||
|
||||
func Get(key string) (Item, error) {
|
||||
return DefaultStore.Get(key)
|
||||
}
|
||||
|
Reference in New Issue
Block a user