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: 0

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