diff options
author | bsiegert <bsiegert@pkgsrc.org> | 2016-08-21 09:14:25 +0000 |
---|---|---|
committer | bsiegert <bsiegert@pkgsrc.org> | 2016-08-21 09:14:25 +0000 |
commit | c8de86fbf84d879f53fd9c0f71c23f06de350aa6 (patch) | |
tree | c2b81b68ec2fe6b9f09bc2c4c59c6d0d3e418056 /devel/go-gls | |
parent | 3c42aa7f780969240dc14f14343e77addca4b933 (diff) | |
download | pkgsrc-c8de86fbf84d879f53fd9c0f71c23f06de350aa6.tar.gz |
New package, go-gls-4.2.0.
Every so often, a thread shows up on the golang-nuts asking for some form of
goroutine-local-storage, or some kind of goroutine id, or some kind of context.
There are a few valid use cases for goroutine-local-storage, one of the most
prominent being log line context. One poster was interested in being able to
log an HTTP request context id in every log line in the same goroutine as the
incoming HTTP request, without having to change every library and function call
he was interested in logging.
It is my duty to point you to https://blog.golang.org/context, which is how
Google solves all of the problems you'd perhaps consider using this package for
at scale.
Diffstat (limited to 'devel/go-gls')
-rw-r--r-- | devel/go-gls/DESCR | 11 | ||||
-rw-r--r-- | devel/go-gls/Makefile | 19 | ||||
-rw-r--r-- | devel/go-gls/PLIST | 12 | ||||
-rw-r--r-- | devel/go-gls/buildlink3.mk | 15 | ||||
-rw-r--r-- | devel/go-gls/distinfo | 6 |
5 files changed, 63 insertions, 0 deletions
diff --git a/devel/go-gls/DESCR b/devel/go-gls/DESCR new file mode 100644 index 00000000000..a2e97a90821 --- /dev/null +++ b/devel/go-gls/DESCR @@ -0,0 +1,11 @@ +Every so often, a thread shows up on the golang-nuts asking for some form of +goroutine-local-storage, or some kind of goroutine id, or some kind of context. +There are a few valid use cases for goroutine-local-storage, one of the most +prominent being log line context. One poster was interested in being able to +log an HTTP request context id in every log line in the same goroutine as the +incoming HTTP request, without having to change every library and function call +he was interested in logging. + +It is my duty to point you to https://blog.golang.org/context, which is how +Google solves all of the problems you'd perhaps consider using this package for +at scale. diff --git a/devel/go-gls/Makefile b/devel/go-gls/Makefile new file mode 100644 index 00000000000..bff1335fede --- /dev/null +++ b/devel/go-gls/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1 2016/08/21 09:14:25 bsiegert Exp $ + +GITHUB_TAG= v4.2.0 +DISTNAME= gls-${GITHUB_TAG:S/v//} +PKGNAME= go-${DISTNAME} +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GITHUB:=jtolds/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/jtolds/gls +COMMENT= Goroutine local storage +LICENSE= mit + +WRKSRC= ${WRKDIR} +GO_DIST_BASE= ${DISTNAME} +GO_SRCPATH= github.com/jtolds/gls + +.include "../../lang/go/go-package.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/go-gls/PLIST b/devel/go-gls/PLIST new file mode 100644 index 00000000000..026bd98652f --- /dev/null +++ b/devel/go-gls/PLIST @@ -0,0 +1,12 @@ +@comment $NetBSD: PLIST,v 1.1 2016/08/21 09:14:25 bsiegert Exp $ +gopkg/pkg/${GO_PLATFORM}/github.com/jtolds/gls.a +gopkg/src/github.com/jtolds/gls/LICENSE +gopkg/src/github.com/jtolds/gls/README.md +gopkg/src/github.com/jtolds/gls/context.go +gopkg/src/github.com/jtolds/gls/context_test.go +gopkg/src/github.com/jtolds/gls/gen_sym.go +gopkg/src/github.com/jtolds/gls/id_pool.go +gopkg/src/github.com/jtolds/gls/stack_tags.go +gopkg/src/github.com/jtolds/gls/stack_tags_js.go +gopkg/src/github.com/jtolds/gls/stack_tags_main.go +@pkgdir bin diff --git a/devel/go-gls/buildlink3.mk b/devel/go-gls/buildlink3.mk new file mode 100644 index 00000000000..22abfa6d4e7 --- /dev/null +++ b/devel/go-gls/buildlink3.mk @@ -0,0 +1,15 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/08/21 09:14:25 bsiegert Exp $ + +BUILDLINK_TREE+= go-gls + +.if !defined(GO_GLS_BUILDLINK3_MK) +GO_GLS_BUILDLINK3_MK:= + +BUILDLINK_CONTENTS_FILTER.go-gls= ${EGREP} gopkg/ +BUILDLINK_DEPMETHOD.go-gls?= build + +BUILDLINK_API_DEPENDS.go-gls+= go-gls>=4.2.0 +BUILDLINK_PKGSRCDIR.go-gls?= ../../devel/go-gls +.endif # GO_GLS_BUILDLINK3_MK + +BUILDLINK_TREE+= -go-gls diff --git a/devel/go-gls/distinfo b/devel/go-gls/distinfo new file mode 100644 index 00000000000..7fe3482b882 --- /dev/null +++ b/devel/go-gls/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/08/21 09:14:25 bsiegert Exp $ + +SHA1 (gls-4.2.0.tar.gz) = 6fa513402b6571eaa564cee4f27b5261de49cae1 +RMD160 (gls-4.2.0.tar.gz) = 5079484ad141a888941ab1648d772f8b94302cd5 +SHA512 (gls-4.2.0.tar.gz) = 1bf9e8c7ab69c8754173129f16b1ac81e2635c75cbdfd9be34ca019b47a64ce489f29bdef3c35c2ef2e9ea60ba441b6b5f1417eec393733bc6dc62f9e017adc3 +Size (gls-4.2.0.tar.gz) = 6464 bytes |