mirror of
https://github.com/libp2p/go-libp2p-resource-manager.git
synced 2025-02-05 01:00:19 +08:00
13 lines
214 B
Go
13 lines
214 B
Go
package rcmgr
|
|
|
|
import (
|
|
"github.com/libp2p/go-libp2p-core/network"
|
|
)
|
|
|
|
type Limit interface {
|
|
GetMemoryLimit() int64
|
|
GetStreamLimit(network.Direction) int
|
|
GetConnLimit(network.Direction) int
|
|
GetFDLimit() int
|
|
}
|