rpcadd

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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

func Add(dir, app string, out io.Writer) error

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.

Jump to

Keyboard shortcuts

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