Template files for generating a GRPC gateway server.
- config.yaml.tmpl is the Viper configuration for the server.
- main.go.tmpl is the entrypoint for the generated server.
- Dockerfile.tmpl is the Dockerfile that can be used to generate a server image.
These files are used to build a grpc-gateway server with namely/gen-grpc-gateway
.
The files contain the following substitutions:
- ${SERVICE} - the name of the service in the proto.
- ${SWAGGER_FILE_NAME} - the name of the swagger file.
The templates are copied into the /templates
folder in the namely/gen-grpc-gateway
image.