facade

command
v0.5.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL