Restructure go-micro layout and plugins

This commit is contained in:
Asim
2015-05-23 20:04:16 +01:00
parent 018183fa49
commit 74fd1fc989
39 changed files with 673 additions and 577 deletions

View File

@@ -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)
}