Commit Graph

45 Commits

Author SHA1 Message Date
Marten Seemann
b7bee3855c remove the context from the libp2p and from the Host contructor 2021-09-18 14:06:56 +02:00
Steven Allen
8217b1f094 fix: deflake multipro echo test
Specifically, wait for the handlers to finish printing before exiting.
2021-08-03 13:36:29 -07:00
Marten Seemann
366bdea5a4 chore: update deps 2021-07-28 14:28:57 +02:00
Lasse Johnsen
af49ef4b87 Error assignment fix 2021-07-02 16:05:08 +01:00
Steven Allen
bffc18861f doc(examples): remove incorrect readme
The described command depends on the user's environment and is unlikely
to be portable. Remove it so as not to confuse users.
2021-05-12 10:16:48 -07:00
Ian Davis
d18fa0f710 Add .gitignore for each example 2021-05-10 11:54:35 +01:00
Steven Allen
9243a830cb chore: fix staticcheck errors 2021-05-07 18:43:57 -07:00
Steven Allen
1c2abee4fb fix: fix example import paths 2021-05-07 17:59:04 -07:00
Ian Davis
0343b56ad5 chore: add tests for examples 2021-05-07 14:52:47 +01:00
Ian Davis
76e1ce667e Fix up example readmes, submodules and gitignore 2021-05-05 11:32:17 +01:00
Ian Davis
d340059a80 chore: bring examples back into repository 2021-05-05 10:57:48 +01:00
Steven Allen
0ee6c5a218 extract libp2p examples to go-libp2p-examples
Repo: https://github.com/libp2p/go-lib2p-examples
2018-07-27 11:41:28 -07:00
Steven Allen
67fb60d95b switch to google's uuid library 2018-07-12 13:25:02 +02:00
Steven Allen
41c6834850 refactor for transport changes
Also, make the libp2p constructor fully useful. There should now be no need to
manually construct a swarm/host.
2018-06-04 21:22:24 -07:00
Steven Allen
7ba479f30e use pb for protobufs, not p2p
For some reason, this was causing gx to freak out.
2018-03-02 15:00:51 -08:00
Aviv Eyal
1be077d5b8 Add proto build instructions 2018-02-22 11:07:20 -08:00
Aviv Eyal
b1e09dbf19 Update readmes 2018-02-22 11:07:15 -08:00
Steven Allen
88d649c7c7 remove multipro example dependency on go-ipfs 2018-02-21 15:51:48 -08:00
Steven Allen
9bb072f8f7 fix copyright multipro example license 2018-02-21 15:50:27 -08:00
Steven Allen
6b1133d8e7 switch probuf to gogo
(otherwise, the gx imports won't work)
2018-02-21 15:26:00 -08:00
Steven Allen
6e3c94f943 switch multipro example to a different UUID package
We already have this one imported into GX. Saves the effort of importing a
different one.
2018-02-21 15:07:55 -08:00
Steven Allen
6297f79d77 fix example import
(need to use the canonical repository location for everything to work)
2018-02-21 15:01:21 -08:00
Steven Allen
64a0735718 gx-go unrewrite 2018-02-21 15:01:21 -08:00
Aviv Eyal
05928a9417 Make sendProtoMessage a method 2018-02-21 15:01:21 -08:00
Aviv Eyal
3eb465bffe Remove protocol.go 2018-02-21 15:01:21 -08:00
Aviv Eyal
a13480f00a Added comments and updated readme 2018-02-21 15:01:21 -08:00
Aviv Eyal
2dbb78f88f Added authors 2018-02-21 15:01:21 -08:00
Aviv Eyal
9f7564448d Refactoring 2018-02-21 15:01:21 -08:00
Aviv Eyal
7702e9b8be Minor code cleanup 2018-02-21 15:01:21 -08:00
Aviv Eyal
49182bcfeb Don't rely on local peer store for remote nodes public keys 2018-02-21 15:01:21 -08:00
Aviv Eyal
efdab23082 Use pointers for methods to avoid copying 2018-02-21 15:01:21 -08:00
Aviv Eyal
8d6313d195 Go frmt proj 2018-02-21 15:01:21 -08:00
Aviv Eyal
4b231df997 log.Fatal() -> log.Println() 2018-02-21 15:01:21 -08:00
Aviv Eyal
bf7f80c30a Refactoring 2018-02-21 15:01:21 -08:00
Aviv Eyal
45c3b5d4a3 Authenticate echo protocol messages 2018-02-21 15:01:21 -08:00
Aviv Eyal
0b1ed3936a Authenticate ping protocol messages 2018-02-21 15:01:21 -08:00
Aviv Eyal
b3d54ab284 Sign all messages 2018-02-21 15:01:21 -08:00
Aviv Eyal
0874c5036e Refactoring 2018-02-21 15:01:21 -08:00
Aviv Eyal
f1dd3185b4 Formatting 2018-02-21 15:01:21 -08:00
Aviv Eyal
c6bfb4d945 Update node type 2018-02-21 15:01:21 -08:00
Aviv Eyal
f0b185695a fixed typos 2018-02-21 15:01:21 -08:00
Aviv Eyal
3f926c52eb Apply go formatting 2018-02-21 15:01:21 -08:00
Aviv Eyal
54aa54a59a Updated comments 2018-02-21 15:01:21 -08:00
Aviv Eyal
01e1a19c3f updated readme and comments 2018-02-21 15:01:21 -08:00
Aviv Eyal
380ae70ddc Added multi-protocol using protobufs example 2018-02-21 15:01:21 -08:00