Cracker.D2Generator (cracker v0.2.3)

Generates d2 diagram markup from a list of function call edges. Each edge is represented as [caller, callee] where caller and callee are strings in the format "module.function/arity"

Summary

Functions

Generate d2 diagram markup from a list of function call edges.

Functions

generate(edges)

Generate d2 diagram markup from a list of function call edges.

Example

edges = [
  {"MyApp.ModuleA.post/1", "MyApp.Client.post/2"},
  {"MyApp.ModuleA.post/1", "MyApp.ModuleA.persist_data/2"},
  {"MyApp.Client.post/2", "MyApp.Client.encode_query/2"},
  {"MyApp.Client.post/2", "MyApp.Client.send_request/2"}
]
Cracker.D2Generator.generate(edges)