hub

package
v0.0.2-0...-522c574 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 1970 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnWithAddr

func ConnWithAddr(conn net.Conn, addr net.Addr) net.Conn

attach ip info to net.Conn produced by websocket.NetConn

func NewAddr

func NewAddr(network, string string) net.Addr

func NewAgentManager

func NewAgentManager() types.AgentManager

func NewHandleHijackListener

func NewHandleHijackListener() *lys

func NewHub

func NewHub(c types.Config) types.Hub

func ToRPC

func ToRPC(conn net.Conn) types.RPC

Types

type YS

type YS struct {
	net.Conn
	*bufio.Scanner
	// contains filtered or unexported fields
}

func (*YS) Actions

func (ys *YS) Actions() <-chan func(types.Hub)

func (*YS) Close

func (ys *YS) Close()

func (*YS) Done

func (ys *YS) Done() <-chan struct{}

func (*YS) ID

func (ys *YS) ID() string

func (*YS) Name

func (ys *YS) Name() string

func (*YS) NewFS

func (ys *YS) NewFS()

func (*YS) NewMetrics

func (ys *YS) NewMetrics()

func (*YS) NewSession

func (ys *YS) NewSession()

func (*YS) NewSocks5

func (ys *YS) NewSocks5()

func (*YS) Ping

func (ys *YS) Ping()

func (*YS) RemoteIP

func (ys *YS) RemoteIP() string

func (*YS) Time

func (ys *YS) Time() time.Time

func (*YS) Unregister

func (ys *YS) Unregister(h types.Hub)

Jump to

Keyboard shortcuts

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