Categorygithub.com/yinyin/go-util-grpc-http-endpoint
modulepackage
0.1.1
Repository: https://github.com/yinyin/go-util-grpc-http-endpoint.git
Documentation: pkg.go.dev

# Functions

DecodeJSONRequest decodes the JSON request into the given proto message reference.
ErrorStatusResponse generate HTTP error response based on given gRPC error status.
JSONResponseWithStatusCode generate JSON response based on given protobuf message m with given statusCode and private Cache-Control headers enabled.
RequestPathInBytes returns the URL path of request in bytes.

# Variables

ErrDecodeRequest indicate an error occur on decoding the request.
ErrEmptyRequestBody indicate the request body is empty.
ErrNotImplementedInWSGHE indicate the function is not implemented in WebSocket gRPC HTTP endpoint.

# Structs

ErrLoadRequest indicate having issue on loading the request.
ErrMalformedRequest indicate the request is malformed and cannot be decode.
WSGHEServerStream provides a server-side gRPC stream interface based on WebSocket.