- Add gRPC server configuration to the application, allowing for gRPC communication. - Introduce new Makefile targets for gRPC unit testing and proto code generation. - Update CI workflows to include gRPC tests with SQLite as the transport layer. - Refactor the sandbox design to support multi-node capabilities and improve isolation. - Enhance the service layer to facilitate internal request forwarding for gRPC APIs. This commit lays the groundwork for integrating gRPC into the Yao SDK, improving performance and scalability.
15 lines
360 B
Go
15 lines
360 B
Go
package health
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/yaoapp/yao/grpc/pb"
|
|
)
|
|
|
|
// Handler implements the Healthz RPC.
|
|
type Handler struct{}
|
|
|
|
// Healthz returns server health status. This method is public (no auth required).
|
|
func (h *Handler) Healthz(ctx context.Context, req *pb.Empty) (*pb.HealthzResponse, error) {
|
|
return &pb.HealthzResponse{Status: "ok"}, nil
|
|
}
|