forked from xmtp/xmtpd
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuf.gen.yaml
More file actions
44 lines (37 loc) · 1.19 KB
/
buf.gen.yaml
File metadata and controls
44 lines (37 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# buf.gen.yaml
version: v2
managed:
enabled: true
override:
- file_option: go_package_prefix
value: github.com/xmtp/xmtpd/pkg/proto
disable:
- file_option: go_package
module: buf.build/googleapis/googleapis
- file_option: go_package
module: buf.build/grpc-ecosystem/grpc-gateway
plugins:
# Generates the Go types and functions for the protobuf messages, enums, descriptors, etc.
- local: protoc-gen-go
out: pkg/proto
opt:
- paths=source_relative
# Generate Connect-Go services (supports gRPC + HTTP/1.1) and client code.
# Servers are HTTP handlers which should be used within a http.ServeMux.
# They speak:
# - Connect over HTTP/1.1 and HTTP/2
# - gRPC over HTTP/2 (h2/h2c)
# - gRPC-Web over HTTP/1.1 and HTTP/2.
- local: protoc-gen-connect-go
out: pkg/proto
opt:
- paths=source_relative
# Generate gRPC service code, such as client stubs and server interfaces.
# Used for grpc.Server and grpc.Client connections.
- local: protoc-gen-go-grpc
out: pkg/proto
opt:
- paths=source_relative
- require_unimplemented_servers=false
- remote: buf.build/grpc-ecosystem/openapiv2:v2.19.0
out: pkg/proto/openapi