httpproxy

package
v8.8.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpProxy

type HttpProxy struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func New

func New(c lib.RelayerConfig, done chan bool) (*HttpProxy, error)

New returns a new http reverse proxy

func (*HttpProxy) Exit

func (s *HttpProxy) Exit()

Exit closes the listener and send done to main

func (*HttpProxy) Reload

func (s *HttpProxy) Reload(c *lib.RelayerConfig) error

Reload changes the configuration of the proxy

func (*HttpProxy) Start

func (s *HttpProxy) Start() error

Start starts the http server in the local port/socket

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool is used, if enabled, as a pool for the reverse proxy

func (*Pool) Get

func (p *Pool) Get() []byte

Get returns a []byte from the Pool

func (*Pool) Put

func (p *Pool) Put(b []byte)

Put a []byte into the pool

Jump to

Keyboard shortcuts

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