MCPcopy
hub / github.com/OWASP/Nettacker / structure

Function structure

nettacker/api/helpers.py:1–12  ·  view source on GitHub ↗

basic JSON message structure Args: status: status (ok, failed) msg: the message content Returns: a JSON message

(status="", msg="")

Source from the content-addressed store, hash-verified

1def structure(status="", msg=""):
2 """
3 basic JSON message structure
4
5 Args:
6 status: status (ok, failed)
7 msg: the message content
8
9 Returns:
10 a JSON message
11 """
12 return {"status": status, "msg": msg}

Callers 14

select_reportsFunction · 0.90
last_host_logsFunction · 0.90
search_logsFunction · 0.90
error_400Function · 0.90
error_401Function · 0.90
error_403Function · 0.90
error_404Function · 0.90
compare_scansFunction · 0.90
session_checkFunction · 0.90
session_setFunction · 0.90
session_killFunction · 0.90
get_result_contentFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected