mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 14:25:45 +00:00
some refactorings
This commit is contained in:
parent
e061adab4c
commit
2f5184742f
8 changed files with 104 additions and 14 deletions
|
|
@ -15,7 +15,7 @@
|
|||
@description: Module to add descriptions to bwPackets
|
||||
"""
|
||||
import logging
|
||||
from module.module import Module
|
||||
from module.moduleBase import ModuleBase
|
||||
|
||||
# ###################### #
|
||||
# Custom plugin includes #
|
||||
|
|
@ -25,7 +25,7 @@ from module.module import Module
|
|||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
|
||||
class BoswatchModule(Module):
|
||||
class BoswatchModuleBase(ModuleBase):
|
||||
"""!Adds descriptions to bwPackets"""
|
||||
def __init__(self, config):
|
||||
"""!Do not change anything here!"""
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
@description: Filter module for the packet type
|
||||
"""
|
||||
import logging
|
||||
from module.module import Module
|
||||
from module.moduleBase import ModuleBase
|
||||
|
||||
# ###################### #
|
||||
# Custom plugin includes #
|
||||
|
|
@ -25,7 +25,7 @@ from module.module import Module
|
|||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
|
||||
class BoswatchModule(Module):
|
||||
class BoswatchModuleBase(ModuleBase):
|
||||
"""!Filter of specific bwPacket mode"""
|
||||
def __init__(self, config):
|
||||
"""!Do not change anything here!"""
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
@description: Regex filter module
|
||||
"""
|
||||
import logging
|
||||
from module.module import Module
|
||||
from module.moduleBase import ModuleBase
|
||||
|
||||
# ###################### #
|
||||
# Custom plugin includes #
|
||||
|
|
@ -25,7 +25,7 @@ import re
|
|||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
|
||||
class BoswatchModule(Module):
|
||||
class BoswatchModuleBase(ModuleBase):
|
||||
"""!Regex based filter mechanism"""
|
||||
def __init__(self, config):
|
||||
"""!Do not change anything here!"""
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
German BOS Information Script
|
||||
by Bastian Schroll
|
||||
|
||||
@file: module.py
|
||||
@file: moduleBase.py
|
||||
@date: 01.03.2019
|
||||
@author: Bastian Schroll
|
||||
@description: Module main class to inherit
|
||||
|
|
@ -22,7 +22,7 @@ from boswatch import wildcard
|
|||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
|
||||
class Module:
|
||||
class ModuleBase:
|
||||
"""!Main module class"""
|
||||
|
||||
_modulesActive = []
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
@description: Template Module File
|
||||
"""
|
||||
import logging
|
||||
from module.module import Module
|
||||
from module.moduleBase import ModuleBase
|
||||
|
||||
# ###################### #
|
||||
# Custom plugin includes #
|
||||
|
|
@ -25,7 +25,7 @@ from module.module import Module
|
|||
logging.debug("- %s loaded", __name__)
|
||||
|
||||
|
||||
class BoswatchModule(Module):
|
||||
class BoswatchModuleBase(ModuleBase):
|
||||
"""!Description of the Module"""
|
||||
def __init__(self, config):
|
||||
"""!Do not change anything here!"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue