优化结构
This commit is contained in:
@@ -19,7 +19,9 @@ import (
|
||||
var ErrConfigPathRequired = errors.New("configuration path is required")
|
||||
|
||||
// Store owns an immutable configuration snapshot and its Viper-backed file
|
||||
// watcher.
|
||||
// watcher. It intentionally remains separate from integration/runtimeconfig.Store:
|
||||
// this store replaces the whole file-backed application snapshot, while the
|
||||
// integration store publishes database-backed provider changes by key.
|
||||
// Every accessor returns a deep copy, so readers can safely use it without
|
||||
// coordinating with a reload in another goroutine.
|
||||
type Store struct {
|
||||
|
||||
Reference in New Issue
Block a user