package grpc // CustomErrorMetadataKey is the name of the metadata key storing additional error information. // Metadata value is expected to be a byte-encoded JSON object. const CustomErrorMetadataKey = "Custom-Error" // HttpCodeMetadataKey is the key to use when setting custom HTTP status codes in gRPC metadata. const HttpCodeMetadataKey = "X-Http-Code" // MetadataPrefix is the prefix for grpc headers on metadata const MetadataPrefix = "Grpc-Metadata" // WithPrefix creates a new string with grpc metadata prefix func WithPrefix(value string) string { return MetadataPrefix + "-" + value }