mirror of
https://github.com/go-micro/go-micro.git
synced 2024-11-24 08:02:32 +02:00
Allow setting of etcd store via flags
This commit is contained in:
parent
de8ab21149
commit
87e2edbeb5
@ -33,5 +33,7 @@ func Init() {
|
||||
switch flagStore {
|
||||
case "memcached":
|
||||
store.DefaultStore = store.NewMemcacheStore()
|
||||
case "etcd":
|
||||
store.DefaultStore = store.NewEtcdStore()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user