Files
backstage/proto
Jefferson Girão ae9bb72e3f Merge pull request #31 from spotify/storing-entitities
feat: create and get entity
2020-02-05 10:06:57 +01:00
..
2020-02-04 14:38:24 +01:00

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

Install Depenedencies

You will need to have protoc-gen-go available in your path. You can find out more information here: https://github.com/golang/protobuf

$ go get -u github.com/golang/protobuf/protoc-gen-go
$ protoc-gen-go # should now be available in your path providing you GOPATH + GOBIN paths are setup correctly.

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:

package spotify.backstage.identity.v1;

func main() {
  identityv1.NewInventoryClient(nil)
}