Repository navigation
Expand file tree
/
Copy pathsource.go
More file actions
54 lines (38 loc) · 1.79 KB
/
Copy pathsource.go
File metadata and controls
54 lines (38 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package confy
import (
"github.com/xraph/confy/internal"
)
// ConfigSource represents a source of configuration data.
type ConfigSource = internal.ConfigSource
// ConfigSourceOptions contains options for creating a configuration source.
type ConfigSourceOptions = internal.ConfigSourceOptions
// ValidationOptions contains validation configuration.
type ValidationOptions = internal.ValidationOptions
// ValidationRule represents a custom validation rule.
type ValidationRule = internal.ValidationRule
// SourceMetadata contains metadata about a configuration source.
type SourceMetadata = internal.SourceMetadata
// ChangeType represents the type of configuration change.
type ChangeType = internal.ChangeType
const (
ChangeTypeSet ChangeType = internal.ChangeTypeSet
ChangeTypeUpdate ChangeType = internal.ChangeTypeUpdate
ChangeTypeDelete ChangeType = internal.ChangeTypeDelete
ChangeTypeReload ChangeType = internal.ChangeTypeReload
)
// ConfigChange represents a configuration change event.
type ConfigChange = internal.ConfigChange
// ConfigSourceFactory creates configuration sources.
type ConfigSourceFactory = internal.ConfigSourceFactory
// SourceConfig contains common configuration for all sources.
type SourceConfig = internal.SourceConfig
// ValidationConfig contains validation configuration for sources.
type ValidationConfig = internal.ValidationConfig
// SourceRegistry manages registered configuration sources.
type SourceRegistry = internal.SourceRegistry
// SourceEvent represents an event from a configuration source.
type SourceEvent = internal.SourceEvent
// SourceEventHandler handles events from configuration sources.
type SourceEventHandler = internal.SourceEventHandler
// WatchContext contains context for watching configuration changes.
type WatchContext = internal.WatchContext