- Daemon invokes plugins base on config.
- Daemon start API thread listening on public API UNIX socket.
- Daemon start commander thread converting API event to/from plugin events.
- Daemon start switch thread forwarding events between api thread, commander thread and plugins.
- The API thread invoke thread all each
NipartConnection
- The
NipartEvent
received from user will changed the target to commander, and send to switch thread. - When switch send back event to API thread, search on which
NipartConnection
should used to send using a tracking queue shared between sub-threads of API thread.
- Forward the
NipartEvent
base on its source and designation. - The switch holds multiple tokio mpsc channels to daemon API thread and commander thread.
- The switch holds
NipartConnection
to plugin socket.
The Bai Ze
is a mythical beast in ancient China. It can speak,
understand the feelings of all things.
(白泽神兽,能言,达于万物之情)
The monitor plugin should send NipartEvent
to commander when event of
NipartMonitorRule
happens.
Librarian to keep the configurations.