Documentation
¶
Overview ¶
Package rpcadd lets an app call the functions of another app of its workspace.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add lets the app in dir call the app named app. It finds that app among the apps under the parent folder of dir, generates it with the other apps there as its workspace, copies its snapshot .aicoded/rpc.json into dir as .aicoded/services/<app>.json, and generates the app in dir, which writes the client and the services section. The snapshot dir held before does not stop the called app's generation, since Add replaces it. It refuses, with E-RPC-006, what rpcgen.AddedPackageName refuses, and, with E-RPC-007, an app that is not there, the app in dir itself, and an app that serves no function. It writes nothing into dir when it refuses.
Types ¶
This section is empty.