Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TcpProxy

type TcpProxy struct {
	session.SessionModule
	Redirection *firewall.Redirection
	// contains filtered or unexported fields
}

func NewTcpProxy

func NewTcpProxy(s *session.Session) *TcpProxy

func (*TcpProxy) Author

func (mod *TcpProxy) Author() string

func (*TcpProxy) Configure

func (mod *TcpProxy) Configure() error

func (*TcpProxy) Description

func (mod *TcpProxy) Description() string

func (*TcpProxy) Name

func (mod *TcpProxy) Name() string

func (*TcpProxy) Start

func (mod *TcpProxy) Start() error

func (*TcpProxy) Stop

func (mod *TcpProxy) Stop() error

type TcpProxyScript

type TcpProxyScript struct {
	*plugin.Plugin
	// contains filtered or unexported fields
}

func LoadTcpProxyScript

func LoadTcpProxyScript(path string, sess *session.Session) (err error, s *TcpProxyScript)

func (*TcpProxyScript) OnData

func (s *TcpProxyScript) OnData(from, to net.Addr, data []byte, callback func(call otto.FunctionCall) otto.Value) []byte