func (b *bucket) Remaining() uint {
	return b.remaining
}
Remaining space in the bucket.
package memory
import (
	"sync"
	"time"
	"github.com/Clever/leakybucket"
)
type bucket struct {
	capacity  uint
	remaining uint
	reset     time.Time
	rate      time.Duration
	mutex     sync.Mutex
}
func (b *bucket) Capacity() uint {
	return b.capacity
}