https://github.com/rensawamo/common-proto
Shared Protobuf definitions for gRPC and Protocol Buffers to prevent duplication and ensure consistency across services.
https://github.com/rensawamo/common-proto
buf common connect gprc protobuf protobuf3
Last synced: 8 months ago
JSON representation
Shared Protobuf definitions for gRPC and Protocol Buffers to prevent duplication and ensure consistency across services.
- Host: GitHub
- URL: https://github.com/rensawamo/common-proto
- Owner: rensawamo
- Created: 2025-03-18T06:46:22.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-03-25T08:36:17.000Z (12 months ago)
- Last Synced: 2025-04-10T20:50:43.354Z (11 months ago)
- Topics: buf, common, connect, gprc, protobuf, protobuf3
- Language: Dart
- Homepage:
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tree
```sh
.
├── buf.lock
├── buf.yaml
├── Makefile
├── README.md
├── proto
│ ├── common
│ │ └── common/v1
│ │ └── common.proto
│ ├── customerapi
│ │ └── customer/v1
│ │ └── customer.proto
│ └── employeeapi
│ └── employee/v1
│ └── employee.proto
└── output/typescript
├── gen
├── Makefile
├── README.md
└── buf.gen.yaml
```
# Set up buf.yaml
```sh
$ buf config init
$ buf build
$ buf dep update
```
# Buf cli
### check lint
```sh
$ buf lint
```
### format
```sh
$ buf format -w
```
### breaking
```sh
$ buf breaking --against '.git#subdir=proto'
```
# Reference
### buf.yaml v2 document
https://buf.build/docs/configuration/v2/buf-yaml/
### buf.gen.yaml v2 document
https://buf.build/docs/configuration/v2/buf-gen-yaml/
### Migrate to v2 configuration files
https://buf.build/docs/migration-guides/migrate-v2-config-files/
### Buf Cli
https://buf.build/docs/cli/