Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAvailablePlugins ¶
GetAvailable Plugins returns a list of all registered plugins by plugin type
func GetAvailableQuerierPlugins ¶
func GetAvailableQuerierPlugins() []string
GetAvailablePlugins returns a list of all registered querier plugins
func InitQuerier ¶
InitQuerier will initialize a querier plugin with the given name and configuration path. If the plugin never registered itself, an error will be returned
func RegisterQuerier ¶
func RegisterQuerier(name string, initFn QuerierInitializer)
RegisterQuerier registers a querier initializer function with a given name. This function is meant to be used by querier plugins to register themselves. RegisterQuerier will panic if a querier with the same name has already been registered
Types ¶
type Initializer ¶
Initializer is a singleton that holds all registered plugins
func GetInitializer ¶
func GetInitializer() *Initializer
GetInitializer returns the singleton Initializer instance. It is safe to call this function concurrently. Repeated calls will return the same instance
func (*Initializer) LogValue ¶
func (i *Initializer) LogValue() slog.Value
type QuerierInitializer ¶
QuerierInitializer is a function that initializes a querier instance. The cfgPath parameter mandates that the querier plugin must be able to read in its configuration from a file