Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPRequest ¶
func HTTPRequest(r *http.Request) (*httpgrpc.HTTPRequest, error)
HTTPRequest wraps an ordinary HTTPRequest with a gRPC one
func WriteError ¶
func WriteError(w http.ResponseWriter, err error)
WriteError converts an httpgrpc error to an HTTP one
func WriteResponse ¶
func WriteResponse(w http.ResponseWriter, resp *httpgrpc.HTTPResponse) error
WriteResponse converts an httpgrpc response to an HTTP one
Types ¶
Click to show internal directories.
Click to hide internal directories.