tunnel

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleDirective = "tunnel"

Variables

This section is empty.

Functions

func New

func New() prifma.Module

func NewResponseTunnel

func NewResponseTunnel() prifma.Response

Types

type ResponseTunnel

type ResponseTunnel struct {
	ResponseCode int
	DstConn      net.Conn
}

func (*ResponseTunnel) ConnectToProxy

func (t *ResponseTunnel) ConnectToProxy(result prifma.HandleRequestResult) error

func (*ResponseTunnel) ConnectToRequest

func (t *ResponseTunnel) ConnectToRequest(result prifma.HandleRequestResult) error

func (*ResponseTunnel) GetCode

func (t *ResponseTunnel) GetCode() int

func (*ResponseTunnel) GetLAddr

func (t *ResponseTunnel) GetLAddr() net.Addr

func (*ResponseTunnel) GetRAddr

func (t *ResponseTunnel) GetRAddr() net.Addr

func (*ResponseTunnel) Write

type Tunnel

type Tunnel struct {
}

func (*Tunnel) Call

func (t *Tunnel) Call(command conf.Command) error

func (*Tunnel) CallBlock

func (t *Tunnel) CallBlock(command conf.Command) (conf.Block, error)

func (*Tunnel) Clone

func (t *Tunnel) Clone() prifma.Module

func (*Tunnel) GetDirective

func (t *Tunnel) GetDirective() string

func (*Tunnel) HandleRequest

func (t *Tunnel) HandleRequest(result prifma.HandleRequestResult) (prifma.HandleRequestResult, error)

Jump to

Keyboard shortcuts

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