v.io: v.io/x/ref/lib/discovery/factory Index | Files

package factory

import "v.io/x/ref/lib/discovery/factory"

Index

Package Files

factory.go plugins_other.go

func InjectFactory Uses

func InjectFactory(factory idiscovery.Factory)

InjectFactory allows a runtime to use the given discovery factory. This should be called before v23.NewDiscovery() is called. Mostly used for testing.

func New Uses

func New(_ *context.T, protocols ...string) (idiscovery.Factory, error)

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.

func SetPluginFactory Uses

func SetPluginFactory(name string, factory pluginFactory)

SetPluginFactory sets the plugin factory with the given name. This should be called before v23.NewDiscovery() is called.

Package factory imports 8 packages (graph) and is imported by 4 packages. Updated 2020-06-09. Refresh now. Tools for package owners.