Gyu-Ho Lee 9 лет назад
Родитель
Сommit
b8017004ba
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      embed/etcd.go

+ 5 - 0
embed/etcd.go

@@ -135,6 +135,11 @@ func StartEtcd(inCfg *Config) (e *Etcd, err error) {
 	return
 }
 
+// Config returns the current configuration.
+func (e *Etcd) Config() Config {
+	return e.cfg
+}
+
 func (e *Etcd) Close() {
 	for _, sctx := range e.sctxs {
 		sctx.cancel()