Documentation
¶
Index ¶
- Variables
- func EnsurePort(server string, tp string) string
- func GetTaskStatus(path string)
- func NewConn(tp string, vkey string, server string, connType string, proxyUrl string) (*conn.Conn, error)
- func NewHttpProxyConn(proxyURL *url.URL, remoteAddr string) (net.Conn, error)
- func RegisterLocalIp(server string, vKey string, tp string, proxyUrl string, hour int)
- func StartFromFile(path string)
- func VerifyTLS(connection net.Conn, host string) (fingerprint []byte, verified bool)
- type Closer
- type FileServerManager
- type HealthChecker
- type P2PManager
- type TRPClient
Constants ¶
This section is empty.
Variables ¶
View Source
var HasFailed = false
View Source
var NowStatus int
View Source
var SkipTLSVerify = false
View Source
var Ver = version.GetLatestIndex()
Functions ¶
func EnsurePort ¶
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 ¶
http proxy connection
func RegisterLocalIp ¶
func StartFromFile ¶
func StartFromFile(path string)
Types ¶
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 (*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
Click to show internal directories.
Click to hide internal directories.