Documentation ¶
Overview ¶
h2c server serving requests from FeG to AG.
Index ¶
Constants ¶
View Source
const ( // Client Certificate CN Header ClientCertCnKeyHttpHeader = "X-Magma-Client-Cert-Cn" // Client Certificate Serial Number Header ClientCertSnKeyHttpHeader = "X-Magma-Client-Cert-Serial" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayToFeGServer ¶
GatewayToFeGServer is a relay from Gateway to Feg. It is a http/2 server serving grpc requests. It authenticates the sender of the request, then forward request to FeG, and forward response back to caller.
func NewGatewayToFegServer ¶
func NewGatewayToFegServer() *GatewayToFeGServer
NewGatewayToFegServer creates a new GatewayToFegServer
func (*GatewayToFeGServer) Run ¶
func (server *GatewayToFeGServer) Run(addr string)
Run blocks and runs the server on addr.
func (*GatewayToFeGServer) Serve ¶
func (server *GatewayToFeGServer) Serve(listener net.Listener)
Serve blocks and serves on listener. This is intended to be used by testing.
Click to show internal directories.
Click to hide internal directories.