- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getSnapshotFunc (0.3 sec)
-
pilot/pkg/config/monitor/monitor.go
func NewMonitor(name string, delegateStore model.ConfigStore, getSnapshotFunc func() ([]*config.Config, error), root string) *Monitor { monitor := &Monitor{ name: name, root: root, store: delegateStore, getSnapshotFunc: getSnapshotFunc, } return monitor } const watchDebounceDelay = 50 * time.Millisecond
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Feb 12 17:36:33 UTC 2024 - 7.2K bytes - Viewed (0) -
pilot/pkg/config/monitor/README.md
```golang monitor := file.NewMonitor( controller, // The crd controller holding the store and event handlers 1*time.Second, // How quickly the monitor requests new snapshots getSnapshotFunc) // The function used to acquire new config ``` ## Running a Monitor Once created, you simply run the monitor, providing a stop channel. ```golang stop := make(chan struct{}) ... monitor.Start(stop)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Sep 14 20:15:07 UTC 2019 - 2.1K bytes - Viewed (0)