tunnel

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	LogLevel C.LogLevel
	Payload  string
}

func (*Log) Type added in v0.4.0

func (l *Log) Type() string

type TrafficTrack added in v0.6.0

type TrafficTrack struct {
	net.Conn
	// contains filtered or unexported fields
}

TrafficTrack record traffic of net.Conn

func (*TrafficTrack) Read added in v0.6.0

func (tt *TrafficTrack) Read(b []byte) (int, error)

func (*TrafficTrack) Write added in v0.6.0

func (tt *TrafficTrack) Write(b []byte) (int, error)

type Tunnel

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

Tunnel handle proxy socket and HTTP/SOCKS socket

func Instance added in v0.6.0

func Instance() *Tunnel

Instance return singleton instance of Tunnel

func (*Tunnel) Add

func (t *Tunnel) Add(req C.ServerAdapter)

Add request to queue

func (*Tunnel) Log added in v0.4.0

func (t *Tunnel) Log() *observable.Observable

Log return clash log stream

func (*Tunnel) Run added in v0.6.0

func (t *Tunnel) Run()

Run initial task

func (*Tunnel) Traffic added in v0.4.0

func (t *Tunnel) Traffic() *C.Traffic

Traffic return traffic of all connections

Jump to

Keyboard shortcuts

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