func NewDefaultProviderWithRegistry(repo *Repository, weight int, registry map[string]types.Value) (*DefaultProvider, error) {
	prov := &DefaultProvider{
		weight:   weight,
		registry: registry,
		ready:    make(chan struct{}),
	}
	repo.RegisterProvider(prov)
	return prov, nil
}
NewDefaultProviderWithRegistry is an alternative constructor for
DefaultProvider. Accepts an extra registry argument as a complete replacement
for the default one.
package cfg
import (
	"github.com/awesome-flow/flow/pkg/types"
)
type DefaultProvider struct {
	weight   int
	registry map[string]types.Value
	ready    chan struct{}
}
var (
	defaults map[string]types.Value
)
func init() {
	defaults = map[string]types.Value{
		CfgPathKey:     "/etc/flowd/flow-config.yaml",
		PluginPathKey:  "/etc/flowd/plugins",
		SystemMaxprocs: 1,
	}
}
var _ Provider = (*DefaultProvider)(nil)
func NewDefaultProvider(repo *Repository, weight int) (*DefaultProvider, error) {
	return NewDefaultProviderWithRegistry(repo, weight, defaults)
}