文件名称:iothrottler:Go包,用于限制应用程序IO(例如带宽)
文件大小:11KB
文件格式:ZIP
更新时间:2024-05-29 23:11:33
Go
碘油管 Go程序包,用于限制应用程序IO(例如带宽)。 安装 如果您安装了Go语言,请输入go get "github.com/efarrer/iothrottler" 例子 import ( "bytes" "fmt" "io" "github.com/efarrer/iothrottler" "os" ) // Basic usage of a IOThrottlerPool to throttle reading from a file func ExampleIOThrottlerPool () { // Construct a bandwidth throttling pool that's limited to 100 bytes per second pool := iothrottler . NewIOThrottlerPool ( iothrottler
【文件预览】:
iothrottler-master
----bin()
--------benchmark.sh(489B)
----iothrottler_test.go(24KB)
----iothrottler.go(9KB)
----example_test.go(2KB)
----LICENSE(1KB)
----.gitignore(11B)
----README.md(970B)
----go.mod(47B)