add proto/ with prototool management + backend/proto and backend/identity example

This commit is contained in:
Patrik Oldsberg
2020-02-04 11:58:13 +01:00
parent c34c416964
commit ad4b9585c4
9 changed files with 675 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
# Backstage proto
Collection of all Backstage protobuf definitions.
## Usage
Managed with prototool, install instructions at https://github.com/uber/prototool/blob/dev/docs/install.md
### Generate code
Run to generate code to `backend/proto/`:
```
$ prototool generate
```
Generated code should be check in to the repo.
### Import generated go code
Example import of inventory:
```go
package spotify.backstage.identity.v1;
func main() {
identityv1.NewInventoryClient(nil)
}
```