Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limit ¶
type Limit struct {
// contains filtered or unexported fields
}
func New ¶
create a Limit Object it will allow maxNum_in_period requests(call TO()) in ms_in_period. if the request(call TO()) is out of maxNum_in_period,it will wait ms_to_timeout ms_to_timeout [>0:will wait ms] [=0:no wait] [<0:will block]
Click to show internal directories.
Click to hide internal directories.