netpack

package
v0.0.0-...-279bf78 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hub

type Hub struct {
	ExternalIP string
	// contains filtered or unexported fields
}

Hub for node pool

func NewHub

func NewHub() *Hub

NewHub

func (*Hub) JoinToSrv

func (hub *Hub) JoinToSrv(conn net.Conn)

JoinToSrv spawn new proxy node with proxy listener on new port

func (*Hub) ProxyList

func (hub *Hub) ProxyList() []string

type Packet

type Packet struct {
	Token     string `json:"token"`
	HostName  string `json:"host_name"`
	OS        string `json:"os"`
	SocksAuth bool   `json:"socks_auth"`
	UserName  string `json:"user_name"`
	Password  string `json:"password"`
}

TODO server password transfer protocol and other message Packet

Jump to

Keyboard shortcuts

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