/opt/imunify360/venv/lib/python3.11/site-packages/defence360agent/plugins
from defence360agent.contracts.messages import MessageType from defence360agent.contracts.plugins import ( MessageSink, MessageSource, expect, ) class SendPing(MessageSource, MessageSink): async def create_sink(self, loop): self._loop = loop async def create_source(self, loop, sink): self._loop = loop self._sink = sink @expect(MessageType.ServerConnected, MessageType.ServerReconnected) async def send_ping(self, _): await self._sink.process_message(MessageType.Ping())
.
Edit
..
Edit
__init__.py
Edit
__pycache__
Edit
accumulate.py
Edit
analyst_cleanup_update.py
Edit
backup_info_sender.py
Edit
cagefs.py
Edit
checkpoint.py
Edit
client.py
Edit
config_merger.py
Edit
config_watcher.py
Edit
event_hook_executor.py
Edit
event_monitor.py
Edit
event_monitor_message_processor.py
Edit
files_recurring_update.py
Edit
icontact_sender.py
Edit
idle_time_out.py
Edit
lve_utils_install.py
Edit
myimunify.py
Edit
ping.py
Edit
send_domain_list.py
Edit
send_server_config.py
Edit
wordpress.py
Edit