Documentation
¶
Overview ¶
Package watcher provides file system monitoring functionality for the CLI Proxy API. It watches configuration files and authentication directories for changes, automatically reloading clients and configuration when files are modified. The package handles cross-platform file system events and supports hot-reloading.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher manages file watching for configuration and authentication files
func NewWatcher ¶
func NewWatcher(configPath, authDir string, reloadCallback func(map[string]interfaces.Client, *config.Config)) (*Watcher, error)
NewWatcher creates a new file watcher instance
func (*Watcher) SetAPIKeyClients ¶
func (w *Watcher) SetAPIKeyClients(apiKeyClients map[string]interfaces.Client)
SetAPIKeyClients sets the API key-based clients.
func (*Watcher) SetClients ¶
func (w *Watcher) SetClients(clients map[string]interfaces.Client)
SetClients sets the file-based clients.
Click to show internal directories.
Click to hide internal directories.