svn commit: r418246 - in head/net: . go-httptreemux

Carlo Strub cs at FreeBSD.org
Fri Jul 8 21:52:46 UTC 2016


Author: cs
Date: Fri Jul  8 21:52:45 2016
New Revision: 418246
URL: https://svnweb.freebsd.org/changeset/ports/418246

Log:
  This is inspired by Julien Schmidt's httprouter, in that it uses a patricia
  tree, but the implementation is rather different. Specifically, the routing
  rules are relaxed so that a single path segment may be a wildcard in one route
  and a static token in another. This gives a nice combination of high
  performance with a lot of convenience in designing the routing patterns. In
  benchmarks, httptreemux is close to, but slightly slower than, httprouter.
  
  WWW: https://github.com/dimfeld/httptreemux

Added:
  head/net/go-httptreemux/
  head/net/go-httptreemux/Makefile   (contents, props changed)
  head/net/go-httptreemux/distinfo   (contents, props changed)
  head/net/go-httptreemux/pkg-descr   (contents, props changed)
  head/net/go-httptreemux/pkg-plist   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Fri Jul  8 21:45:49 2016	(r418245)
+++ head/net/Makefile	Fri Jul  8 21:52:45 2016	(r418246)
@@ -170,6 +170,7 @@
     SUBDIR += go-cs
     SUBDIR += go-geoip
     SUBDIR += go-httppath
+    SUBDIR += go-httptreemux
     SUBDIR += go.net
     SUBDIR += gofish
     SUBDIR += gogoc

Added: head/net/go-httptreemux/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/go-httptreemux/Makefile	Fri Jul  8 21:52:45 2016	(r418246)
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+PORTNAME=	httptreemux
+PORTVERSION=	3.0.0
+CATEGORIES=	net
+PKGNAMEPREFIX=	go-
+
+MAINTAINER=	cs at FreeBSD.org
+COMMENT=	High-speed, flexible, tree-based HTTP router for Go
+
+LICENSE=	MIT
+
+BUILD_DEPENDS= ${LOCALBASE}/${GO_LIBDIR}/github.com/dimfeld/httppath.a:net/go-httppath
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	dimfeld
+USES=		go
+GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/net/go-httptreemux/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/go-httptreemux/distinfo	Fri Jul  8 21:52:45 2016	(r418246)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1468013922
+SHA256 (dimfeld-httptreemux-3.0.0_GH0.tar.gz) = 07d9ed8749c2c048f4cffe2601d88696ca73940ffcac42170c839442af949c9f
+SIZE (dimfeld-httptreemux-3.0.0_GH0.tar.gz) = 20414

Added: head/net/go-httptreemux/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/go-httptreemux/pkg-descr	Fri Jul  8 21:52:45 2016	(r418246)
@@ -0,0 +1,8 @@
+This is inspired by Julien Schmidt's httprouter, in that it uses a patricia
+tree, but the implementation is rather different. Specifically, the routing
+rules are relaxed so that a single path segment may be a wildcard in one route
+and a static token in another. This gives a nice combination of high
+performance with a lot of convenience in designing the routing patterns. In
+benchmarks, httptreemux is close to, but slightly slower than, httprouter.
+
+WWW: https://github.com/dimfeld/httptreemux

Added: head/net/go-httptreemux/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/go-httptreemux/pkg-plist	Fri Jul  8 21:52:45 2016	(r418246)
@@ -0,0 +1,11 @@
+%%GO_LIBDIR%%/%%GO_PKGNAME%%.a
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/LICENSE
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/README.md
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/fallthrough_test.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/group.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/group_test.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/panichandler.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/router.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/router_test.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/tree.go
+%%GO_SRCDIR%%/%%GO_PKGNAME%%/tree_test.go


More information about the svn-ports-all mailing list