leakybucket

package
Version: v0.0.0-...-8e44b2c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeakyBucket

type LeakyBucket interface {
	Capacity() int
	Name() string
	TimeFrame() int
	Empty() (bool, error)
	Full() (bool, error)
	Increase() error
	Fill(amount int) error
	LastUpdated() int
	GoSelect() (godata.GoRow, error)
	PrintRawSQL() (string, error)
	RefreshBucket() error
	Volume() (int, error)
}

func LoadBucket

func LoadBucket(name string) (LeakyBucket, error)

func NewBucket

func NewBucket(name string, capacity, timeFrame int, loadBucketIfExists bool) (LeakyBucket, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL