(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn)
| 208 | } |
| 209 | |
| 210 | func registerAll(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { |
| 211 | // Public + admin surfaces share this gateway mux (one REST port serves |
| 212 | // both). Both dial the same in-process gRPC server over the bufconn. |
| 213 | if err := authorizerv1.RegisterAuthorizerServiceHandler(ctx, mux, conn); err != nil { |
| 214 | return err |
| 215 | } |
| 216 | return authorizerv1.RegisterAuthorizerAdminServiceHandler(ctx, mux, conn) |
| 217 | } |