From e34f0d7468b3519bf9bf4e43c1d028ce651eab51 Mon Sep 17 00:00:00 2001 From: Jeromy Date: Mon, 3 Oct 2016 17:49:49 -0700 Subject: [PATCH] gx publish version 1.0.0, extracted from go-libp2p --- .gx/lastpubver | 1 + package.json | 15 +++++++++++++++ protocol.go | 9 +++++++++ 3 files changed, 25 insertions(+) create mode 100644 .gx/lastpubver create mode 100644 package.json create mode 100644 protocol.go diff --git a/.gx/lastpubver b/.gx/lastpubver new file mode 100644 index 0000000..37d90aa --- /dev/null +++ b/.gx/lastpubver @@ -0,0 +1 @@ +1.0.0: QmZNkThpqfVXs9GNbexPrfBbXSLNYeKrE7jwFM2oqHbyqN diff --git a/package.json b/package.json new file mode 100644 index 0000000..02531a1 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "author": "whyrusleeping", + "bugs": { + "url": "https://github.com/libp2p/go-libp2p-protocol" + }, + "gx": { + "dvcsimport": "github.com/libp2p/go-libp2p-protocol" + }, + "gxVersion": "0.9.1", + "language": "go", + "license": "", + "name": "go-libp2p-protocol", + "version": "1.0.0" +} + diff --git a/protocol.go b/protocol.go new file mode 100644 index 0000000..f7e4a32 --- /dev/null +++ b/protocol.go @@ -0,0 +1,9 @@ +package protocol + +// ID is an identifier used to write protocol headers in streams. +type ID string + +// These are reserved protocol.IDs. +const ( + TestingID ID = "/p2p/_testing" +)