client

package
v0.29.16 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: GPL-3.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HasFailed = false
View Source
var NowStatus int
View Source
var SkipTLSVerify = false

Functions

func EnsurePort

func EnsurePort(server string, tp string) string

func GetTaskStatus

func GetTaskStatus(path string)

func NewConn

func NewConn(tp string, vkey string, server string, connType string, proxyUrl string) (*conn.Conn, error)

Create a new connection with the server and verify it

func NewHttpProxyConn

func NewHttpProxyConn(proxyURL *url.URL, remoteAddr string) (net.Conn, error)

http proxy connection

func RegisterLocalIp

func RegisterLocalIp(server string, vKey string, tp string, proxyUrl string, hour int)

func StartFromFile

func StartFromFile(path string)

func VerifyTLS

func VerifyTLS(connection net.Conn, host string) (fingerprint []byte, verified bool)

Types

type Closer

type Closer interface{ Close() error }

type FileServerManager

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

func NewFileServerManager

func NewFileServerManager(parentCtx context.Context) *FileServerManager

func (*FileServerManager) CloseAll

func (fsm *FileServerManager) CloseAll()

func (*FileServerManager) StartFileServer

func (fsm *FileServerManager) StartFileServer(cfg *config.CommonConfig, t *file.Tunnel, vkey string)

type HealthChecker

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

func NewHealthChecker

func NewHealthChecker(parentCtx context.Context, healths []*file.Health, c *conn.Conn) *HealthChecker

func (*HealthChecker) Reset

func (hc *HealthChecker) Reset()

func (*HealthChecker) Start

func (hc *HealthChecker) Start()

func (*HealthChecker) Stop

func (hc *HealthChecker) Stop()

type P2PManager

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

func NewP2PManager

func NewP2PManager(parentCtx context.Context) *P2PManager

func (*P2PManager) Close

func (mgr *P2PManager) Close()

func (*P2PManager) StartLocalServer

func (mgr *P2PManager) StartLocalServer(l *config.LocalServer, cfg *config.CommonConfig) error

type TRPClient

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

func NewRPClient

func NewRPClient(svraddr string, vKey string, bridgeConnType string, proxyUrl string, cnf *config.Config, disconnectTime int) *TRPClient

new client

func (*TRPClient) Close

func (s *TRPClient) Close()

func (*TRPClient) Start

func (s *TRPClient) Start()

start

Jump to

Keyboard shortcuts

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