mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-09 03:50:27 +08:00
实现请求连接数等限制
This commit is contained in:
14
internal/nodes/client_conn_interface.go
Normal file
14
internal/nodes/client_conn_interface.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
|
||||
package nodes
|
||||
|
||||
type ClientConnInterface interface {
|
||||
// IsClosed 是否已关闭
|
||||
IsClosed() bool
|
||||
|
||||
// IsBound 是否已绑定服务
|
||||
IsBound() bool
|
||||
|
||||
// Bind 绑定服务
|
||||
Bind(serverId int64, remoteAddr string, maxConnsPerServer int, maxConnsPerIP int) bool
|
||||
}
|
||||
Reference in New Issue
Block a user