proxy

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

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 represents an instance of a proxy.

func New

func New(port int) (*Proxy, error)

New creates a new instance of a proxy.

func NewWithTLS

func NewWithTLS(tls *identity.Identity, port int) (*Proxy, error)

NewWithTLS creates a new instance of a proxy that is TLS enabled.

func (*Proxy) DumpRouteMap

func (p *Proxy) DumpRouteMap()

DumpRouteMap logs the route mappings that have been registered

func (*Proxy) RegisterCA

func (p *Proxy) RegisterCA(ca *ca.CA)

RegisterCA registers the specified CA with the proxy.

func (*Proxy) RegisterConsole

func (p *Proxy) RegisterConsole(console *console.Console)

RegisterConsole registers the specified console with the proxy.

func (*Proxy) RegisterCouchDB

func (p *Proxy) RegisterCouchDB(couchDB couchdb.CouchDB)

RegisterCouchDB registers the specified CouchDB with the proxy.

func (*Proxy) RegisterOrderer

func (p *Proxy) RegisterOrderer(orderer *orderer.Orderer)

RegisterOrderer registers the specified orderer with the proxy.

func (*Proxy) RegisterPeer

func (p *Proxy) RegisterPeer(peer *peer.Peer)

RegisterPeer registers the specified peer with the proxy.

func (*Proxy) Start

func (p *Proxy) Start() error

Start starts the proxy.

func (*Proxy) Stop

func (p *Proxy) Stop() error

Stop stops the proxy.

Jump to

Keyboard shortcuts

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