1
0
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:
Asim 2015-03-06 18:59:24 +00:00
parent de8ab21149
commit 87e2edbeb5

View File

@ -33,5 +33,7 @@ func Init() {
switch flagStore {
case "memcached":
store.DefaultStore = store.NewMemcacheStore()
case "etcd":
store.DefaultStore = store.NewEtcdStore()
}
}