Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy must be created using [NewProxy]
func NewServer ¶
func NewServer(config ProxyConfig) *Proxy
func (*Proxy) ReplaceServers ¶
func (p *Proxy) ReplaceServers(provider string, newConfigs []UpstreamConfig)
func (*Proxy) ServeHTTP ¶
func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements the http.Handler interface. This method is the entrypoint for all requests into the proxy.
func (*Proxy) ServerReflectionInfo ¶
func (p *Proxy) ServerReflectionInfo(stream grpc_reflection_v1.ServerReflection_ServerReflectionInfoServer) error
ServerReflectionInfo implements grpc_reflection_v1.ServerReflectionServer.
type ProxyConfig ¶
type UpstreamConfig ¶
Click to show internal directories.
Click to hide internal directories.