Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mf
go-multiaddr-fmt
Commits
a482f356
Commit
a482f356
authored
Sep 18, 2019
by
Steven Allen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add a P2P pattern and deprecate IPFS in favor of it
parent
7e4bda62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
patterns.go
patterns.go
+6
-1
No files found.
patterns.go
View file @
a482f356
...
...
@@ -47,8 +47,13 @@ var Unreliable = Or(UDP)
// Now define a Reliable transport as either tcp or utp or quic
var
Reliable
=
Or
(
TCP
,
UTP
,
QUIC
)
// P2P can run over any reliable underlying transport protocol
var
P2P
=
And
(
Reliable
,
Base
(
ma
.
P_P2P
))
// IPFS can run over any reliable underlying transport protocol
var
IPFS
=
And
(
Reliable
,
Base
(
ma
.
P_IPFS
))
//
// Deprecated: use P2P
var
IPFS
=
P2P
// Define http over TCP or DNS or http over DNS format multiaddr
var
HTTP
=
Or
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment