Module dev_hyperbuddy.erl¶
A device that renders a REPL-like interface for AO-Core via HTML.
Function Index¶
events/3 | Return the current event counters as a message. |
format/3 | Employ HyperBEAM's internal pretty printer to format a message. |
info/0 | Export an explicit list of files via http. |
metrics/3 | The main HTML page for the REPL device. |
return_file/1* | Read a file from disk and serve it as a static HTML page. |
return_file/2 | |
serve/4* | Serve a file from the priv directory. |
Function Details¶
events/3¶
events(X1, Req, Opts) -> any()
Return the current event counters as a message.
format/3¶
format(Base, Req, Opts) -> any()
Employ HyperBEAM's internal pretty printer to format a message.
info/0¶
info() -> any()
Export an explicit list of files via http.
metrics/3¶
metrics(X1, Req, Opts) -> any()
The main HTML page for the REPL device.
return_file/1 *¶
return_file(Name) -> any()
Read a file from disk and serve it as a static HTML page.
return_file/2¶
return_file(Device, Name) -> any()
serve/4 *¶
serve(Key, M1, M2, Opts) -> any()
Serve a file from the priv directory. Only serves files that are explicitly
listed in the routes
field of the info/0
return value.