factory

package
v0.1.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: BSD-3-Clause Imports: 8 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectFactory

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

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

func SetPluginFactory(name string, factory pluginFactory)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL