ratelimit

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2018 License: MIT Imports: 5 Imported by: 0

README

a simple implement of ratelimit

inspired by token bucket

Build Status Coverage Status Go Report Card GoDoc

Install
go get -u github.com/FelixSeptem/ratelimit

Documentation

Overview

Package ratelimit provides the ratelimit implement by token bucket

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTokenBucket

func InitTokenBucket(capacity int32) *tokenBucket

InitTokenBucket create a new token bucket with given capacity

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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