tunnels

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthReqMsg

type AuthReqMsg struct {
	Token string // tunnel token
}

type AuthResMsg

type AuthResMsg struct {
	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 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