mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
embed: add 'Config' method
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user