embed: add 'Config' method

This commit is contained in:
Gyu-Ho Lee
2016-09-28 19:05:03 -07:00
parent d80c13555a
commit b8017004ba

View File

@@ -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()