tunnel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientController

type ClientController interface {
	Add(clientID string, serverID string, clientHandler client.ClientHandler)
	Get(clientID string, serverID string) client.ClientHandler
	Delete(clientID string, serverID string)
	Set(clientID string, serverID string, clientHandler client.ClientHandler)
	Run(clientID string, serverID string) // 不阻塞
	Stop(clientID string, serverID string)
	GetByClient(clientID string) *utils.SyncMap[string, client.ClientHandler]
	DeleteByClient(clientID string)
	RunByClient(clientID string) // 不阻塞
	StopByClient(clientID string)
	StopAll()
	DeleteAll()
	RunAll()
	List() []string
}

func GetClientController

func GetClientController() ClientController

func NewClientController

func NewClientController() ClientController

type ServerController

type ServerController interface {
	Add(serverID string, serverHandler server.ServerHandler)
	Get(serverID string) server.ServerHandler
	Delete(serverID string)
	Set(serverID string, serverHandler server.ServerHandler)
	Run(serverID string) // 不阻塞
	Stop(serverID string)
	List() []string
}

func GetServerController

func GetServerController() ServerController

func NewServerController

func NewServerController() ServerController

Jump to

Keyboard shortcuts

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