-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Define an interface for the observer server, and add a new implementation LocalObserverServer. It ignores all the state change events and does not connect to Cilium's monitor socket. It's meant to be started embeeded in Cilium process so that: 1. the parser can access Cilium state directly without making a copy, and 2. the server can receive monitor payloads by registering a listener. The observer server interface adds a new method HandleMonitorSocket() that encapsulates the logic for connecting to the monitor socket and handling monitor events instead of exposing the logic in cmd/serve.go. Signed-off-by: Michi Mutsuzaki <michi@isovalent.com>
- Loading branch information
1 parent
6ac8623
commit 624070a
Showing
6 changed files
with
494 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.