1 line
16 KiB
JSON
1 line
16 KiB
JSON
{"nodes": [{"id": "$graphify-root$_internal_webui_auth_go", "label": "auth.go", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L1"}, {"id": "webui_ctxkey", "label": "ctxKey", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L16"}, {"id": "webui_accessscope", "label": "accessScope", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L28"}, {"id": "webui_accessscope_allowed", "label": ".Allowed()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L33"}, {"id": "webui_accessscope_ids", "label": ".IDs()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L40"}, {"id": "$graphify-root$_internal_webui_auth_scopefromcontext", "label": "scopeFromContext()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L51"}, {"id": "request", "label": "Request", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/internal/webui/auth.go"}, {"id": "$graphify-root$_internal_webui_auth_requiredomainaccess", "label": "requireDomainAccess()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L60"}, {"id": "responsewriter", "label": "ResponseWriter", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/internal/webui/auth.go"}, {"id": "webui_app", "label": "App", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L68"}, {"id": "webui_app_buildaccessscope", "label": ".buildAccessScope()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L68"}, {"id": "adminuser", "label": "AdminUser", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/internal/webui/auth.go"}, {"id": "$graphify-root$_internal_webui_auth_setsessioncookie", "label": "setSessionCookie()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L83"}, {"id": "$graphify-root$_internal_webui_auth_clearsessioncookie", "label": "clearSessionCookie()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L95"}, {"id": "webui_app_currentsession", "label": ".currentSession()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L101"}, {"id": "adminsession", "label": "AdminSession", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/internal/webui/auth.go"}, {"id": "$graphify-root$_internal_webui_auth_userfromcontext", "label": "userFromContext()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L121"}, {"id": "webui_app_requireauth", "label": ".requireAuth()", "file_type": "code", "source_file": "internal/webui/auth.go", "source_location": "L130"}, {"id": "handler", "label": "Handler", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/internal/webui/auth.go"}], "edges": [{"source": "$graphify-root$_internal_webui_auth_go", "target": "go_pkg_context", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L4", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "go_pkg_net_http", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L5", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "go_pkg_time", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L6", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "go_pkg_mailgoserver_internal_db", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L8", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "webui_ctxkey", "relation": "contains", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L16", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "webui_accessscope", "relation": "contains", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L28", "weight": 1.0}, {"source": "webui_accessscope", "target": "webui_accessscope_allowed", "relation": "method", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L33", "weight": 1.0}, {"source": "webui_accessscope", "target": "webui_accessscope_ids", "relation": "method", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L40", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "$graphify-root$_internal_webui_auth_scopefromcontext", "relation": "contains", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L51", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_scopefromcontext", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L51", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_internal_webui_auth_scopefromcontext", "target": "webui_accessscope", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L51", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "$graphify-root$_internal_webui_auth_requiredomainaccess", "relation": "contains", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L60", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_requiredomainaccess", "target": "responsewriter", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L60", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_internal_webui_auth_requiredomainaccess", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L60", "weight": 1.0, "context": "parameter_type"}, {"source": "webui_app", "target": "webui_app_buildaccessscope", "relation": "method", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L68", "weight": 1.0}, {"source": "webui_app_buildaccessscope", "target": "adminuser", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L68", "weight": 1.0, "context": "parameter_type"}, {"source": "webui_app_buildaccessscope", "target": "webui_accessscope", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L68", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "$graphify-root$_internal_webui_auth_setsessioncookie", "relation": "contains", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L83", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_setsessioncookie", "target": "responsewriter", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L83", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "$graphify-root$_internal_webui_auth_clearsessioncookie", "relation": "contains", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L95", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_clearsessioncookie", "target": "responsewriter", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L95", "weight": 1.0, "context": "parameter_type"}, {"source": "webui_app", "target": "webui_app_currentsession", "relation": "method", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L101", "weight": 1.0}, {"source": "webui_app_currentsession", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L101", "weight": 1.0, "context": "parameter_type"}, {"source": "webui_app_currentsession", "target": "adminsession", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L101", "weight": 1.0, "context": "return_type"}, {"source": "webui_app_currentsession", "target": "adminuser", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L101", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_internal_webui_auth_go", "target": "$graphify-root$_internal_webui_auth_userfromcontext", "relation": "contains", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L121", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_userfromcontext", "target": "request", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L121", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_internal_webui_auth_userfromcontext", "target": "adminuser", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L121", "weight": 1.0, "context": "return_type"}, {"source": "webui_app", "target": "webui_app_requireauth", "relation": "method", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L130", "weight": 1.0}, {"source": "webui_app_requireauth", "target": "handler", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L130", "weight": 1.0, "context": "parameter_type"}, {"source": "webui_app_requireauth", "target": "handler", "relation": "references", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L130", "weight": 1.0, "context": "return_type"}, {"source": "$graphify-root$_internal_webui_auth_requiredomainaccess", "target": "webui_accessscope_allowed", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L61", "weight": 1.0}, {"source": "$graphify-root$_internal_webui_auth_requiredomainaccess", "target": "$graphify-root$_internal_webui_auth_scopefromcontext", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L61", "weight": 1.0}, {"source": "webui_app_requireauth", "target": "webui_app_currentsession", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L132", "weight": 1.0}, {"source": "webui_app_requireauth", "target": "webui_app_buildaccessscope", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "internal/webui/auth.go", "source_location": "L157", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_internal_webui_auth_scopefromcontext", "callee": "Value", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L52"}, {"caller_nid": "$graphify-root$_internal_webui_auth_scopefromcontext", "callee": "Context", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L52"}, {"caller_nid": "$graphify-root$_internal_webui_auth_requiredomainaccess", "callee": "NotFound", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L64"}, {"caller_nid": "webui_app_buildaccessscope", "callee": "AccessibleDomainIDs", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L72"}, {"caller_nid": "$graphify-root$_internal_webui_auth_setsessioncookie", "callee": "SetCookie", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L84"}, {"caller_nid": "$graphify-root$_internal_webui_auth_setsessioncookie", "callee": "Seconds", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L91"}, {"caller_nid": "$graphify-root$_internal_webui_auth_clearsessioncookie", "callee": "SetCookie", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L96"}, {"caller_nid": "webui_app_currentsession", "callee": "Cookie", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L102"}, {"caller_nid": "webui_app_currentsession", "callee": "GetSession", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L106"}, {"caller_nid": "webui_app_currentsession", "callee": "After", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L110"}, {"caller_nid": "webui_app_currentsession", "callee": "Now", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L110"}, {"caller_nid": "webui_app_currentsession", "callee": "DeleteSession", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L111"}, {"caller_nid": "webui_app_currentsession", "callee": "GetAdminUserByID", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L114"}, {"caller_nid": "$graphify-root$_internal_webui_auth_userfromcontext", "callee": "Value", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L122"}, {"caller_nid": "$graphify-root$_internal_webui_auth_userfromcontext", "callee": "Context", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L122"}, {"caller_nid": "webui_app_requireauth", "callee": "HandlerFunc", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L131"}, {"caller_nid": "webui_app_requireauth", "callee": "Redirect", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L137"}, {"caller_nid": "webui_app_requireauth", "callee": "CountWebAuthnCredentials", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L143"}, {"caller_nid": "webui_app_requireauth", "callee": "Redirect", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L148"}, {"caller_nid": "webui_app_requireauth", "callee": "Redirect", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L153"}, {"caller_nid": "webui_app_requireauth", "callee": "WithValue", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L164"}, {"caller_nid": "webui_app_requireauth", "callee": "Context", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L164"}, {"caller_nid": "webui_app_requireauth", "callee": "WithValue", "is_member_call": false, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L165"}, {"caller_nid": "webui_app_requireauth", "callee": "ServeHTTP", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L166"}, {"caller_nid": "webui_app_requireauth", "callee": "WithContext", "is_member_call": true, "language": "go", "source_file": "internal/webui/auth.go", "source_location": "L166"}]} |