Browse Source

embed: add 'Config' method

Gyu-Ho Lee 9 years ago
parent
commit
b8017004ba
1 changed files with 5 additions and 0 deletions
  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()