add grpc support

This commit is contained in:
2025-03-07 13:00:45 -05:00
parent 98fba4eac8
commit 2cf15a4837
4 changed files with 68 additions and 19 deletions

View File

@ -10,7 +10,9 @@ import (
srvhttp "gitea.libretechconsulting.com/rmcguire/go-app/pkg/srv/http"
)
func (a *App) initGRPC() {
// TODO: Implement
func (a *App) initGRPC(ctx context.Context) error {
return nil
}
func (a *App) initHTTP(ctx context.Context) error {

View File

@ -31,9 +31,10 @@ type AppGRPC struct {
}
type GRPCService struct {
Name string // Descriptive name of service
Type *grpc.ServiceDesc // Type (from protoc generated code)
Service any // Implementation of GRPCService.Type (ptr)
Name string // Descriptive name of service
Type *grpc.ServiceDesc // Type (from protoc generated code)
Service any // Implementation of GRPCService.Type (ptr)
grpcDone <-chan error
}
type AppHTTP struct {