tunnels

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthReq uint8 = iota
	AuthRes
	NewConReq
	NewConRes
	Ping
	Pong
	Stat
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthReqMsg

type AuthReqMsg struct {
	Hash        string // tunnel hash
	APIKey      string // user secret
	Type        string // tunnel type: RDP, HTTP, TCP
	Destination string
	Extra       map[string]string
}

type AuthResMsg

type AuthResMsg struct {
	Message    Message
	PublicAddr string // secret token
}

type Con

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

func (*Con) ReadPacket

func (c *Con) ReadPacket() (action uint8, data []byte, err error)

func (*Con) WritePacket

func (c *Con) WritePacket(t uint8, msg interface{}) error

type Message added in v1.3.3

type Message struct {
	Level   uint8
	Message string
}

type NetEvent

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

type NewConReqMsg

type NewConReqMsg struct {
	Session string
}

type NewConResMsg

type NewConResMsg struct {
	Session string
}

type Tunnel

type Tunnel struct {
	Hash           string
	Type           string
	Destination    string
	DestinationTLS bool

	PublicAddr string
	// contains filtered or unexported fields
}

func (*Tunnel) Start

func (t *Tunnel) Start(errChan chan error) error

func (*Tunnel) Stop

func (t *Tunnel) Stop()

Jump to

Keyboard shortcuts

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