package
Version:
v0.20.1
Opens a new window with list of versions in this module.
Published: Aug 21, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation
¶
type ModOption func(option *Option)
type Option struct {
WindowMs int
Unit Unit
}
TODO chef: 考虑支持配置是否在内部使用锁
const (
UnitBitPerSec Unit = iota + 1
UnitBytePerSec
UnitKbitPerSec
UnitKbytePerSec
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.