gw_to_feg_relay

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 19 Imported by: 0

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

type GatewayToFeGServer struct {
	*http2.H2CServer
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL