...
1version = "2"
2generators = ["go"]
3
4# Control protoc include paths. Below are usually some good defaults, but feel
5# free to try it without them if it works for your project.
6[includes]
7 # Include paths that will be added before all others. Typically, you want to
8 # treat the root of the project as an include, but this may not be necessary.
9 before = ["."]
10
11 # Paths that will be added untouched to the end of the includes. We use
12 # `/usr/local/include` to pickup the common install location of protobuf.
13 # This is the default.
14 after = ["/usr/local/include"]
15
16# This section maps protobuf imports to Go packages. These will become
17# `-M` directives in the call to the go protobuf generator.
18[packages]
19 "google/protobuf/any.proto" = "github.com/gogo/protobuf/types"
20 "proto/status.proto" = "google.golang.org/genproto/googleapis/rpc/status"
21
22[[overrides]]
23# enable ttrpc and disable fieldpath and grpc for the shim
24prefixes = ["github.com/containerd/ttrpc/integration/streaming"]
25generators = ["go", "go-ttrpc"]
26
27[overrides.parameters.go-ttrpc]
28prefix = "TTRPC"
View as plain text