- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SupportedGRPCStatus (0.22 sec)
-
pkg/util/grpc/codes.go
// limitations under the License. package grpc import ( "google.golang.org/grpc/codes" ) // SupportedGRPCStatus contains golang supported gRPC status: https://github.com/grpc/grpc-go/blob/master/codes/codes.go var SupportedGRPCStatus = map[string]codes.Code{ "OK": codes.OK, "CANCELLED": codes.Canceled, "UNKNOWN": codes.Unknown,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jun 06 16:50:02 UTC 2022 - 1.5K bytes - Viewed (0) -
pilot/pkg/networking/core/route/route.go
// the validation webhook would have already caught the invalid // code and we wouldn't reach here. out.Abort.ErrorType = &xdshttpfault.FaultAbort_GrpcStatus{ GrpcStatus: uint32(grpc.SupportedGRPCStatus[a.GrpcStatus]), } default: log.Warnf("Only HTTP and gRPC type abort faults are supported") out.Abort = nil } } if out.Delay == nil && out.Abort == nil { return nil
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 14:12:39 UTC 2024 - 56.1K bytes - Viewed (0) -
pkg/config/validation/validation.go
if status < 200 || status > 600 { return fmt.Errorf("HTTP status %d is not in range 200-599", status) } return nil } func validateGRPCStatus(status string) error { _, found := grpc.SupportedGRPCStatus[status] if !found { return fmt.Errorf("gRPC status %q is not supported. See https://github.com/grpc/grpc/blob/master/doc/statuscodes.md "+ "for a list of supported codes, for example 'NOT_FOUND'", status) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Jun 12 04:03:33 UTC 2024 - 107.2K bytes - Viewed (0)