- ConfigUpdate interface with apply(*State) method - ConfigEvent and ScaleEvent both implement ConfigUpdate - Logic.ConfigChan() accepts both types - Type switch in Run() differentiates ConfigEvent vs ScaleEvent - main.go sends both on same ConfigChan() |
||
|---|---|---|
| .. | ||
| main.go | ||
| pad | ||