mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
868 B
868 B
Adding new RPCs
Adding new RPCs to any of the server roles is currently a little involved. Here's a list of what you'll need to modify:
- Add RPC definitions to proto files. Either in the
apirepo (for frontend) or here inproto/internal(for history/matching). - Update
go.temporal.io/apito pick up the new generated files (for frontend) or generate them here withmake proto(for history/matching). - Add metric scope defs for client-side metrics to
common/metrics/defs.go(this is going away soon). make go-generateto generate wrappers inclient.- For frontend: add definitions to
service/frontend/dcRedirectionHandler.go. (In the future hopefully we can make this generated or use interceptors.) - Add your new methods to
service/<service>/configs/quotas.go. - Finally implement your new methods in the RPC handler.