InjectFactory allows a runtime to use the given discovery factory. This should be called before v23.NewDiscovery() is called. Mostly used for testing.
New returns a new discovery factory with the given protocols.
We instantiate a factory lazily so that we do not turn it on until it is actually used.
SetPluginFactory sets the plugin factory with the given name. This should be called before v23.NewDiscovery() is called.