Documentation
¶
Overview ¶
Command facade writes both ends of a service module's calls, so a server can use a module's packages by name with none of its code compiled in. From each listed package it copies the exported types and constants as they are, and writes:
- for the server, a stub for each exported function and method, which makes the call over the module's service connection (wittymodule/service);
- for the module, the code that answers each one.
Run it again after a package changes:
go run github.com/wittywilla/wittymodule/kit/facade -config facade.json -module <folder> -server <folder>
A signature it can't carry (a func, a channel, an interface) is left out and listed, and is written by hand beside what it generates, in the server's folder and in the module's.
Click to show internal directories.
Click to hide internal directories.