Documentation ¶
Overview ¶
Package bucket contains a leeking bucket to be used with a web server for slow down the requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LeekingBucket ¶
type LeekingBucket struct {
// contains filtered or unexported fields
}
LeekingBucket implements the bucket
func (*LeekingBucket) ServeHTTP ¶
func (l *LeekingBucket) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP servers a request.
Click to show internal directories.
Click to hide internal directories.