JSONRPC2Plug.Service (jsonrpc2_plug v0.1.0)

Link to this section Summary

Functions

Define method and handler.

Link to this section Functions

Link to this macro

method(name, handler)

(macro)

Specs

method(JSONRPC2Plug.Request.method(), module()) :: term()
method(atom(), module()) :: term()

Define method and handler.

Example:

method "add", AddMethod
method :subtract, SubtractMethod