Discover Packages
github.com/bhavpreet/dwr
command
module
Version:
v0.0.0-...-02037c1
Opens a new window with list of versions in this module.
Published: Jun 5, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
dwr
Diminishing Weighted Random Distribution implementation, with state save.
This can be used for various distributions to distribute fairly among a group
POST /myKey JSON:
json := {
"weight_1" : 1,
"weight_2" : 2,
"weight_heavy": 99
}
REQUESTS
GET :
GET /myKey
Response
{ "key": "weight_heavy" }
DELETE
Request: DELETE /myKey
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.