redis

package
v0.0.0-...-71692c9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package redis provides a leaky bucket implementation backed by redis.

Usage: TODO

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

Storage is a redis-based, non thread-safe leaky bucket factory.

func New

func New(network, address string) (*Storage, error)

New initializes the connection to redis.

func (*Storage) Create

func (s *Storage) Create(name string, capacity uint, rate time.Duration) (leakybucket.Bucket, error)

Create a bucket.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL