services

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigManagerService

func NewConfigManagerService(logger models.Logger, configManager models.ConfigManager) services.ConfigManagerService

NewConfigManagerService creates a new API instance for the config manager plugin.

Types

type ConfigManagerService

type ConfigManagerService struct {
	// contains filtered or unexported fields
}

ConfigManagerService implements the ConfigManagerAPI interface.

func (*ConfigManagerService) GetAuthSettings

func (s *ConfigManagerService) GetAuthSettings(ctx context.Context) (map[string]any, error)

GetAuthSettings returns the current authentication settings.

func (*ConfigManagerService) GetConfig

func (s *ConfigManagerService) GetConfig(ctx context.Context) (*models.Config, error)

GetConfig returns the current global configuration.

func (*ConfigManagerService) GetPluginConfig

func (s *ConfigManagerService) GetPluginConfig(ctx context.Context, pluginName string) (any, error)

GetPluginConfig retrieves the configuration for a specific plugin.

func (*ConfigManagerService) NotifyWatchers

func (s *ConfigManagerService) NotifyWatchers(config *models.Config) error

NotifyWatchers calls OnConfigUpdate on all registered config watchers. If a watcher returns an error, it is logged but other watchers continue to be notified (fail-open).

func (*ConfigManagerService) RegisterConfigWatcher

func (s *ConfigManagerService) RegisterConfigWatcher(pluginID string, plugin models.PluginWithConfigWatcher) error

RegisterConfigWatcher registers a plugin to receive config update notifications.

Jump to

Keyboard shortcuts

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