Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
// Get retrieves configuration data from the source
Get(ctx context.Context, path string) ([]byte, error)
// Watch starts monitoring the given path for changes
// Returns a channel that will receive notifications when changes occur
Watch(ctx context.Context, path string) (<-chan struct{}, error)
// Name returns the provider's name (e.g., "git", "consul")
Name() string
// Close releases any resources held by the provider
Close() error
}
Provider defines the interface for all configuration providers
type ProviderFactory ¶
ProviderFactory creates a new provider instance
Click to show internal directories.
Click to hide internal directories.