Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrUnknownProvider is a sentinel error type returned if a client requests // an unknown indexer from the registry. ErrUnknownProvider = thingfulx.Error("thingfulx: unknown data provider") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
Registry is a threadsafe data structure for holding instantiated thingfulx.Indexers, and returning them to a caller.
func NewRegistry ¶
func NewRegistry() *Registry
NewRegistry is a constructor function that returns a Registry ready for use.
func (*Registry) GetIndexer ¶
GetIndexer attempts to return the indexer for the specified provider UID.
func (*Registry) GetIndexers ¶ added in v0.8.2
GetIndexers returns a list of the registered Indexers in the registry
func (*Registry) MustRegister ¶
MustRegister wraps our Register function but panics on any error as we cannot proceed.
Click to show internal directories.
Click to hide internal directories.