Skip to content

Commit

Permalink
Adding built-in plugin descriptigons.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Sep 20, 2020
1 parent a1b4c7b commit 31eb00e
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hookee/plugins/blueprint_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
__version__ = "1.2.2"

blueprint = Blueprint("default", __name__)

plugin_type = BLUEPRINT_PLUGIN
description = "Mount required management endpoints along with the default `/webhook` endpoint that processes incoming " \
"requests with enabled plugins."

plugin_manager = None # type: PluginManager
print_util = None # type: PrintUtil

Expand Down
2 changes: 2 additions & 0 deletions hookee/plugins/request_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
__version__ = "1.2.2"

plugin_type = REQUEST_PLUGIN
description = "Print the `request`'s body, if defined, and attempt to identify the body type."

print_util = None # type: PrintUtil


Expand Down
2 changes: 2 additions & 0 deletions hookee/plugins/request_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
__version__ = "1.2.2"

plugin_type = REQUEST_PLUGIN
description = "Print the `request`'s files, if defined."

print_util = None # type: PrintUtil


Expand Down
2 changes: 2 additions & 0 deletions hookee/plugins/request_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
__version__ = "1.2.2"

plugin_type = REQUEST_PLUGIN
description = "Print the `request`'s headers, if defined."

print_util = None # type: PrintUtil


Expand Down
2 changes: 2 additions & 0 deletions hookee/plugins/request_query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
__version__ = "1.2.2"

plugin_type = REQUEST_PLUGIN
description = "Print the `request`'s query parameters, if defined."

print_util = None # type: PrintUtil


Expand Down
2 changes: 2 additions & 0 deletions hookee/plugins/request_url_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
__version__ = "1.2.2"

plugin_type = REQUEST_PLUGIN
description = "Print the timestamp along with the request URL and method being invoked."

print_util = None # type: PrintUtil


Expand Down
2 changes: 2 additions & 0 deletions hookee/plugins/response_echo.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
__version__ = "1.2.2"

plugin_type = RESPONSE_PLUGIN
description = "If the `response` object has not been initialized, create a response that echo's back the request data."

print_util = None # type: PrintUtil


Expand Down
2 changes: 2 additions & 0 deletions hookee/plugins/response_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
__version__ = "1.2.2"

plugin_type = RESPONSE_PLUGIN
description = "Print the `response`'s status code, headers, and body, if defined."

print_util = None # type: PrintUtil


Expand Down

0 comments on commit 31eb00e

Please sign in to comment.