proxy

package
v0.0.0-...-85e540a Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type H2CTransportWrapper

type H2CTransportWrapper struct {
	*http2.Transport
}

func (*H2CTransportWrapper) RoundTrip

func (tw *H2CTransportWrapper) RoundTrip(req *http.Request) (*http.Response, error)

type Proxy

type Proxy struct {
	HTTPServer *http.Server
}

func New

func New(console *console.Console, orderer *orderer.Orderer, peers []*peer.Peer, port int) (*Proxy, error)

func (*Proxy) Start

func (p *Proxy) Start() error

func (*Proxy) Stop

func (p *Proxy) Stop() error

type Route

type Route struct {
	SourceHost string
	TargetHost string
	UseHTTP2   bool
}

type RouteMap

type RouteMap map[string]*Route

Jump to

Keyboard shortcuts

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