ralitobu v0.1.0 Ralitobu

Rate Limiter with Token Bucket algorithm

Usage information in the README.md

Summary

Functions

Checkout a token from a given bucket id with limit and lifetime and sends the result to a given target pid

Checkout a token from a given bucket id with limit and lifetime and sends the result to a given target pid (for a specific server)

Deletes a given bucket id and sends the result to a given target pid

Deletes a given bucket id and sends the result to a given target pid (for a specific server)

Inspects a given bucket id with limit and lifetime and sends the result to a given target pid

Inspects a given bucket id with limit and lifetime and sends the result to a given target pid (for a specific server)

Checkout a token from a given bucket id with limit and lifetime

Checkout a token from a given bucket id with limit and lifetime (for a specific server)

Deletes a given bucket id

Deletes a given bucket id (for a specific server)

Inspects a given bucket id with limit and lifetime

Inspects a given bucket id with limit and lifetime (for a specific server)

Starts the application

Starts a new server with given config and options

Returns the current version of Ralitobu

Functions

async_checkout(id, limit, lifetime, pid)

Checkout a token from a given bucket id with limit and lifetime and sends the result to a given target pid

async_checkout(server, id, limit, lifetime, pid)

Checkout a token from a given bucket id with limit and lifetime and sends the result to a given target pid (for a specific server)

async_delete(id, pid)

Deletes a given bucket id and sends the result to a given target pid

async_delete(server, id, pid)

Deletes a given bucket id and sends the result to a given target pid (for a specific server)

async_inspect(id, limit, lifetime, pid)

Inspects a given bucket id with limit and lifetime and sends the result to a given target pid

async_inspect(server, id, limit, lifetime, pid)

Inspects a given bucket id with limit and lifetime and sends the result to a given target pid (for a specific server)

checkout(id, limit, lifetime)

Checkout a token from a given bucket id with limit and lifetime

checkout(server, id, limit, lifetime)

Checkout a token from a given bucket id with limit and lifetime (for a specific server)

delete(id)

Deletes a given bucket id

delete(server, id)

Deletes a given bucket id (for a specific server)

inspect(id, limit, lifetime)

Inspects a given bucket id with limit and lifetime

inspect(server, id, limit, lifetime)

Inspects a given bucket id with limit and lifetime (for a specific server)

start(type, args)

Starts the application

start_server(config, opts)

Starts a new server with given config and options

version()

Returns the current version of Ralitobu