gotsrpc.yaml
Typically there will be one central gotsrpc.yaml
file per project.
Purpose
Go code generation rules
- service proxy generation
- client generation
TypeScript code generation rules
gotsrpc.yaml file sections
Targets
Think of targets as build targets. A target is defined for all services in a package
https://github.com/foomo/gotsrpc-playground/blob/main/gotsrpc.yaml#L1-L16
Mappings
https://github.com/foomo/gotsrpc-playground/blob/main/gotsrpc.yaml#L43-L46
GOModule Support
To support go modules add
module:
name: github.com/foomo/gotsrpc
path: ../ # Relative Or Absolute Path where the package was checked out (root of the package)
fe```