discovery/openstack/openstack.go
func NewDiscovery(conf *SDConfig, l log.Logger) (*refresh.Discovery, error) {
	r, err := newRefresher(conf, l)
	if err != nil {
		return nil, err
	}
	return refresh.NewDiscovery(
		l,
		"openstack",
		time.Duration(conf.RefreshInterval),
		r.refresh,
	), nil

}
func NewDiscovery(conf *SDConfig, l log.Logger) (*refresh.Discovery, error) {
	r, err := newRefresher(conf, l)
	if err != nil {
		return nil, err
	}
	return refresh.NewDiscovery(
		l,
		"openstack",
		time.Duration(conf.RefreshInterval),
		r.refresh,
	), nil

}
func NewDiscovery ( conf * SDConfig , l log . Logger ) ( * refresh . Discovery , error ) { r , err := newRefresher ( conf , l ) if err != nil { return nil , err } return refresh . NewDiscovery ( l , " " , time . Duration ( conf . RefreshInterval ) , r . refresh , ) , nil }
// NewDiscovery returns a new OpenStack Discoverer which periodically refreshes its targets.
NewDiscovery returns a new OpenStack Discoverer which periodically refreshes its targets .