| 10 | ) |
| 11 | |
| 12 | type sourceLoader struct { |
| 13 | inner config.Source |
| 14 | refreshInterval time.Duration |
| 15 | |
| 16 | mu sync.RWMutex |
| 17 | data []byte |
| 18 | err error |
| 19 | } |
| 20 | |
| 21 | // NewSourceLoader creates a new source loader that caches and periodically refreshes a config source. |
| 22 | func NewSourceLoader(ctx context.Context, inner config.Source, refreshInterval time.Duration) *sourceLoader { |
nothing calls this directly
no outgoing calls
no test coverage detected