fusen-gateway/server/logic/gateway_logic_gen.go

31 lines
581 B
Go
Raw Permalink Normal View History

2023-11-02 10:40:22 +00:00
package logic
import (
"context"
"fusen-gateway/gen/go/service"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"google.golang.org/grpc"
)
func AutoRegisterHandler(ctx context.Context, mux *runtime.ServeMux, opts ...grpc.DialOption) error {
var err error
err = service.RegisterAuthHandlerClientNacos(ctx, mux, opts...)
if err != nil {
return err
}
2023-11-21 10:30:26 +00:00
err = service.RegisterNotifyHandlerClientNacos(ctx, mux, opts...)
if err != nil {
return err
}
2023-11-17 10:35:28 +00:00
err = service.RegisterInfoHandlerClientNacos(ctx, mux, opts...)
2023-11-16 08:24:52 +00:00
if err != nil {
return err
}
2023-11-02 10:40:22 +00:00
return nil
}