You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/components/protoc-gen-route.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: protoc-gen-route
3
-
weight: 35
3
+
weight: 33
4
4
---
5
5
6
6
`protoc-gen-route` is a protoc plugin that generates routing code from `.proto` files. It is designed to inspect service definitions within your protobuf files and automatically generate corresponding route handlers based on a specified template. This plugin creates Go code that provides structured routing with operation constants, extra data handling, server interfaces, and codec interfaces for seamless integration with various transport protocols.
@@ -395,3 +395,7 @@ service UserService {
395
395
- Combine with `protoc-gen-sphere-errors` for consistent error handling
396
396
- Works with any transport layer that can use the generated interfaces
Copy file name to clipboardExpand all lines: content/docs/components/protoc-gen-sphere-binding.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: protoc-gen-sphere-binding
3
-
weight: 36
3
+
weight: 34
4
4
---
5
5
6
6
`protoc-gen-sphere-binding` is a protoc plugin that generates Go struct tags for Sphere binding from `.proto` files. It is designed to inspect service definitions within your protobuf files and automatically generate corresponding Go struct tags based on sphere binding annotations.
Copy file name to clipboardExpand all lines: content/docs/components/protoc-gen-sphere-errors.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: protoc-gen-sphere-errors
3
-
weight: 37
3
+
weight: 35
4
4
---
5
5
6
6
`protoc-gen-sphere-errors` is a protoc plugin that generates error handling code from `.proto` files. It is designed to inspect enum definitions within your protobuf files and automatically generate corresponding error handling code based on the sphere errors framework. This plugin creates Go code that provides structured error handling with HTTP status codes, error codes, and customizable messages.
@@ -199,3 +199,8 @@ When used with Sphere's HTTP server utilities, these errors are automatically co
199
199
- Sphere's Gin layer maps these to structured JSON with correct HTTP status
200
200
- Pair with a global error parser if you need to merge validation/notfound/custom errors
201
201
- The generated errors integrate seamlessly with Sphere's server utilities for consistent API responses
Copy file name to clipboardExpand all lines: content/docs/components/sphere-cli.md
+4-65Lines changed: 4 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: sphere-cli
3
-
weight: 32
3
+
weight: 31
4
4
---
5
5
6
6
Sphere CLI (`sphere-cli`) is a command-line tool designed to streamline the development of [Sphere](https://github.com/go-sphere/sphere) projects. It helps you create new projects, generate service code, manage Protobuf definitions, and perform other common development tasks.
@@ -139,70 +139,10 @@ Renames the Go module path across the entire repository. This is useful when you
0 commit comments