Преглед изворни кода

embed: add 'Config' method

Gyu-Ho Lee пре 9 година
родитељ
комит
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()