New package, go-ratelimit.

The ratelimit package provides an efficient token bucket implementation. See
http://en.wikipedia.org/wiki/Token_bucket.
This commit is contained in:
bsiegert 2016-07-15 19:35:01 +00:00
parent 74d34aefed
commit c2f88e230e
5 changed files with 38 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.2282 2016/07/15 10:08:50 wen Exp $
# $NetBSD: Makefile,v 1.2283 2016/07/15 19:35:01 bsiegert Exp $
#
COMMENT= Development utilities
@ -295,6 +295,7 @@ SUBDIR+= gnustep-objc-lf2
SUBDIR+= go-check
SUBDIR+= go-flags-svent
SUBDIR+= go-nbreader
SUBDIR+= go-ratelimit
SUBDIR+= go-review
SUBDIR+= go-tools
SUBDIR+= gob2

2
devel/go-ratelimit/DESCR Normal file
View file

@ -0,0 +1,2 @@
The ratelimit package provides an efficient token bucket implementation. See
http://en.wikipedia.org/wiki/Token_bucket.

View file

@ -0,0 +1,20 @@
# $NetBSD: Makefile,v 1.1 2016/07/15 19:35:02 bsiegert Exp $
DISTNAME= go-ratelimit-0.0.20151125
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=juju/}
GITHUB_PROJECT= ratelimit
GITHUB_TAG= 77ed1c8a01217656d2080ad51981f6e99adaa177
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/juku/ratelimit
COMMENT= Efficient token-bucket-based rate limiter package
LICENSE= gnu-lgpl-v3
WRKSRC= ${WRKDIR}
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
GO_SRCPATH= github.com/juju/ratelimit
.include "../../devel/go-check/buildlink3.mk"
.include "../../lang/go/go-package.mk"
.include "../../mk/bsd.pkg.mk"

8
devel/go-ratelimit/PLIST Normal file
View file

@ -0,0 +1,8 @@
@comment $NetBSD: PLIST,v 1.1 2016/07/15 19:35:02 bsiegert Exp $
gopkg/pkg/${GO_PLATFORM}/github.com/juju/ratelimit.a
gopkg/src/github.com/juju/ratelimit/LICENSE
gopkg/src/github.com/juju/ratelimit/README.md
gopkg/src/github.com/juju/ratelimit/ratelimit.go
gopkg/src/github.com/juju/ratelimit/ratelimit_test.go
gopkg/src/github.com/juju/ratelimit/reader.go
@pkgdir bin

View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1 2016/07/15 19:35:02 bsiegert Exp $
SHA1 (go-ratelimit-0.0.20151125-77ed1c8a01217656d2080ad51981f6e99adaa177.tar.gz) = 282d0b5f9caf186e2100d150033f82ffd5ea0f4f
RMD160 (go-ratelimit-0.0.20151125-77ed1c8a01217656d2080ad51981f6e99adaa177.tar.gz) = bd439c94972cc599b46670a90f9c9ef8af5a935e
SHA512 (go-ratelimit-0.0.20151125-77ed1c8a01217656d2080ad51981f6e99adaa177.tar.gz) = 78e8fcd734177fd411b30d26150f623be8347583a1d6a849d4ef2e72085811d8295a97acfb484a84a20917bee8e324e7914c79258a24d7dd14fc04d4246589de
Size (go-ratelimit-0.0.20151125-77ed1c8a01217656d2080ad51981f6e99adaa177.tar.gz) = 7975 bytes