proxy

package
v0.0.0-...-bf3cd5a Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// APIClients clients API
	APIClients = "/api/clients"
	// APIProxies proxies API
	APIProxies = "/api/proxies"
)
View Source
var (
	// DECODER TransparentDecoder
	DECODER = NewTransparentDecoder()
	// ENCODER TransparentEncoder
	ENCODER = NewTransparentEncoder()
)

Functions

func NewTransparentDecoder

func NewTransparentDecoder() goetty.Decoder

NewTransparentDecoder create TransparentDecoder

func NewTransparentEncoder

func NewTransparentEncoder() goetty.Encoder

NewTransparentEncoder create TransparentEncoder

Types

type Proxy

type Proxy struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Proxy proxy

func NewProxy

func NewProxy(cnf *conf.Conf) *Proxy

NewProxy factory method

func (*Proxy) Pause

func (p *Proxy) Pause(addr string)

Pause pause proxy listen

func (*Proxy) Resume

func (p *Proxy) Resume(addr string)

Resume resume proxy listen

func (*Proxy) Start

func (p *Proxy) Start()

Start start server

func (*Proxy) Stop

func (p *Proxy) Stop()

Stop stop server

func (*Proxy) UpdateCtl

func (p *Proxy) UpdateCtl(ctl *conf.Ctl)

UpdateCtl UpdateCtl

type TCPServer

type TCPServer struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

TCPServer TCPServer

type TransparentDecoder

type TransparentDecoder struct {
}

TransparentDecoder TransparentDecoder

func (TransparentDecoder) Decode

func (d TransparentDecoder) Decode(in *goetty.ByteBuf) (bool, interface{}, error)

Decode decode

type TransparentEncoder

type TransparentEncoder struct {
}

TransparentEncoder TransparentEncoder

func (TransparentEncoder) Encode

func (e TransparentEncoder) Encode(data interface{}, out *goetty.ByteBuf) error

Encode Encode

Jump to

Keyboard shortcuts

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