package
0.0.0-20230728070032-dd9e68f319d5
Repository: https://github.com/weaveworks/common.git
Documentation: pkg.go.dev

# Functions

HTTPRequest wraps an ordinary HTTPRequest with a gRPC one.
NewClient makes a new Client, given a kubernetes service address.
NewServer makes a new Server.
ParseURL deals with direct:// style URLs, as well as kubernetes:// urls.
WriteError converts an httpgrpc error to an HTTP one.
WriteResponse converts an httpgrpc response to an HTTP one.

# Structs

Client is a http.Handler that forwards the request over gRPC.
Server implements HTTPServer.