Files
mailgoserver/graphify-out/cache/ast/v0.9.37/dcdb29da657fc048b06c628e9ed047d4564a2dc38285205e744fcc83a866f9b2.json
T

1 line
18 KiB
JSON

{"nodes": [{"id": "$graphify-root$_main_go", "label": "main.go", "file_type": "code", "source_file": "main.go", "source_location": "L1"}, {"id": "$graphify-root$_main_main", "label": "main()", "file_type": "code", "source_file": "main.go", "source_location": "L24"}, {"id": "$graphify-root$_main_abspath", "label": "absPath()", "file_type": "code", "source_file": "main.go", "source_location": "L167"}, {"id": "$graphify-root$_main_writehealthjson", "label": "writeHealthJSON()", "file_type": "code", "source_file": "main.go", "source_location": "L174"}, {"id": "responsewriter", "label": "ResponseWriter", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main.go"}, {"id": "db", "label": "DB", "file_type": "code", "source_file": "", "source_location": "", "origin_file": "$graphify-root$/main.go"}], "edges": [{"source": "$graphify-root$_main_go", "target": "go_pkg_flag", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L6", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_fmt", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L7", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_net_http", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L8", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_os", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L9", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_path_filepath", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L10", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_sync_atomic", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L11", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_time", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L12", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_config", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L14", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_db", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L15", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_dkim", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L16", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_relay", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L17", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_smtpserver", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L18", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_tlsutil", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L19", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_toolbox", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L20", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "go_pkg_mailgoserver_internal_webui", "relation": "imports_from", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L21", "weight": 1.0, "context": "import"}, {"source": "$graphify-root$_main_go", "target": "$graphify-root$_main_main", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L24", "weight": 1.0}, {"source": "$graphify-root$_main_go", "target": "$graphify-root$_main_abspath", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L167", "weight": 1.0}, {"source": "$graphify-root$_main_go", "target": "$graphify-root$_main_writehealthjson", "relation": "contains", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L174", "weight": 1.0}, {"source": "$graphify-root$_main_writehealthjson", "target": "responsewriter", "relation": "references", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L174", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_main_writehealthjson", "target": "db", "relation": "references", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L174", "weight": 1.0, "context": "parameter_type"}, {"source": "$graphify-root$_main_main", "target": "$graphify-root$_main_abspath", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L103", "weight": 1.0}, {"source": "$graphify-root$_main_main", "target": "$graphify-root$_main_writehealthjson", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "main.go", "source_location": "L148", "weight": 1.0}], "raw_calls": [{"caller_nid": "$graphify-root$_main_main", "callee": "Parse", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L32"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Getwd", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L34"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Fprintln", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L36"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Exit", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L37"}, {"caller_nid": "$graphify-root$_main_main", "callee": "IsAbs", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L40"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Join", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L41"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Load", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L44"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Fprintln", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L46"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Exit", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L47"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Configure", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L49"}, {"caller_nid": "$graphify-root$_main_main", "callee": "GetLogger", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L50"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Info", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L56"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Info", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L57"}, {"caller_nid": "$graphify-root$_main_main", "callee": "AbsoluteSQLitePath", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L61"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L61"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L61"}, {"caller_nid": "$graphify-root$_main_main", "callee": "EnsureFolderExists", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L62"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Exit", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L64"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Open", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L66"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Exit", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L69"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Close", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L71"}, {"caller_nid": "$graphify-root$_main_main", "callee": "SeedDefaultAdminIfEmpty", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L73"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Exit", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L75"}, {"caller_nid": "$graphify-root$_main_main", "callee": "MustInt", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L78"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L78"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L78"}, {"caller_nid": "$graphify-root$_main_main", "callee": "New", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L79"}, {"caller_nid": "$graphify-root$_main_main", "callee": "New", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L80"}, {"caller_nid": "$graphify-root$_main_main", "callee": "GetLogger", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L80"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L82"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L82"}, {"caller_nid": "$graphify-root$_main_main", "callee": "MustString", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L84"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L84"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L84"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L86"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L86"}, {"caller_nid": "$graphify-root$_main_main", "callee": "IsAbs", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L87"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Join", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L88"}, {"caller_nid": "$graphify-root$_main_main", "callee": "GetLogger", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L93"}, {"caller_nid": "$graphify-root$_main_main", "callee": "MustInt", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L99"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L99"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L99"}, {"caller_nid": "$graphify-root$_main_main", "callee": "MustInt", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L100"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L100"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L100"}, {"caller_nid": "$graphify-root$_main_main", "callee": "ResolveBanner", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L101"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L103"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L103"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Key", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L104"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Section", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L104"}, {"caller_nid": "$graphify-root$_main_main", "callee": "GenerateSelfSignedCert", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L105"}, {"caller_nid": "$graphify-root$_main_main", "callee": "CreateSSLContext", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L109"}, {"caller_nid": "$graphify-root$_main_main", "callee": "NewPlainServer", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L119"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Sprintf", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L119"}, {"caller_nid": "$graphify-root$_main_main", "callee": "NewTLSServer", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L120"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Sprintf", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L120"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Store", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L122"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Info", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L123"}, {"caller_nid": "$graphify-root$_main_main", "callee": "ListenAndServe", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L126"}, {"caller_nid": "$graphify-root$_main_main", "callee": "ListenAndServeTLS", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L130"}, {"caller_nid": "$graphify-root$_main_main", "callee": "runSMTP", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L136"}, {"caller_nid": "$graphify-root$_main_main", "callee": "New", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L140"}, {"caller_nid": "$graphify-root$_main_main", "callee": "GetLogger", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L140"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Exit", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L143"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Mux", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L146"}, {"caller_nid": "$graphify-root$_main_main", "callee": "HandleFunc", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L147"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Load", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L148"}, {"caller_nid": "$graphify-root$_main_main", "callee": "HandleFunc", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L150"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Redirect", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L151"}, {"caller_nid": "$graphify-root$_main_main", "callee": "runSMTP", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L155"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Sleep", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L156"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Sprintf", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L159"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Info", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L160"}, {"caller_nid": "$graphify-root$_main_main", "callee": "ListenAndServe", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L161"}, {"caller_nid": "$graphify-root$_main_main", "callee": "Exit", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L163"}, {"caller_nid": "$graphify-root$_main_abspath", "callee": "IsAbs", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L168"}, {"caller_nid": "$graphify-root$_main_abspath", "callee": "Join", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L171"}, {"caller_nid": "$graphify-root$_main_writehealthjson", "callee": "Ping", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L176"}, {"caller_nid": "$graphify-root$_main_writehealthjson", "callee": "Header", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L187"}, {"caller_nid": "$graphify-root$_main_writehealthjson", "callee": "Fprintf", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L188"}, {"caller_nid": "$graphify-root$_main_writehealthjson", "callee": "Format", "is_member_call": true, "language": "go", "source_file": "main.go", "source_location": "L189"}, {"caller_nid": "$graphify-root$_main_writehealthjson", "callee": "Now", "is_member_call": false, "language": "go", "source_file": "main.go", "source_location": "L189"}]}