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
Click to show internal directories.
Click to hide internal directories.