Documentation ¶
Index ¶
Constants ¶
View Source
const (
// EOFMessage is the EOF message websockets must send to imitate gRPC CloseSend()
EOFMessage = "EOF"
)
Variables ¶
This section is empty.
Functions ¶
func GRPCStatusToHTTPStatusCode ¶
GRPCStatusToHTTPStatusCode converts a GRPC status to an HTTP Status Code
func MethodFromString ¶
MethodFromString converts a method string to a httpapi.Method
func ProxyRequest ¶
func ProxyRequest(ctx context.Context, w http.ResponseWriter, r *http.Request, procedure string, conn grpc.ClientConnInterface, txid string, loggers ...logs.Writer)
ProxyRequest proxies an HTTP(S) or WS(S) request through a GRPC connection compliant with httpgrpc/httpapi
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.