Rename package to 'flowrate'
This commit is contained in:
parent
10e10fd81d
commit
6a20af8766
|
@ -2,9 +2,9 @@
|
||||||
// Written by Maxim Khitrov (November 2012)
|
// Written by Maxim Khitrov (November 2012)
|
||||||
//
|
//
|
||||||
|
|
||||||
// Package flowcontrol provides the tools for monitoring and limiting the
|
// Package flowrate provides the tools for monitoring and limiting the flow rate
|
||||||
// transfer rate of an arbitrary data stream.
|
// of an arbitrary data stream.
|
||||||
package flowcontrol
|
package flowrate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
|
@ -2,7 +2,7 @@
|
||||||
// Written by Maxim Khitrov (November 2012)
|
// Written by Maxim Khitrov (November 2012)
|
||||||
//
|
//
|
||||||
|
|
||||||
package flowcontrol
|
package flowrate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
// ErrLimit is returned by the Writer when a non-blocking write is short due to
|
// ErrLimit is returned by the Writer when a non-blocking write is short due to
|
||||||
// the transfer rate limit.
|
// the transfer rate limit.
|
||||||
var ErrLimit = errors.New("flowcontrol: transfer rate limit exceeded")
|
var ErrLimit = errors.New("flowrate: flow rate limit exceeded")
|
||||||
|
|
||||||
// Limiter is implemented by the Reader and Writer to provide a consistent
|
// Limiter is implemented by the Reader and Writer to provide a consistent
|
||||||
// interface for monitoring and controlling data transfer.
|
// interface for monitoring and controlling data transfer.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Written by Maxim Khitrov (November 2012)
|
// Written by Maxim Khitrov (November 2012)
|
||||||
//
|
//
|
||||||
|
|
||||||
package flowcontrol
|
package flowrate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// Written by Maxim Khitrov (November 2012)
|
// Written by Maxim Khitrov (November 2012)
|
||||||
//
|
//
|
||||||
|
|
||||||
package flowcontrol
|
package flowrate
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
||||||
|
|
Loading…
Reference in New Issue