add grpc support
This commit is contained in:
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user