Commit Graph

85 Commits

Author SHA1 Message Date
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
Christophe de Carvalho Pereira Martins e6f29fdadc
add a link to options.go in the host example
so reader can see all the supported configuration for the
host constructor
2018-06-06 14:54:51 +02:00
Christophe de Carvalho Pereira Martins f842b5569d
update README of the host example
fixes #333
2018-06-06 14:37:30 +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 5180df872e
Merge pull request #284 from upperwal/master
Added example "chat" with README
2018-03-03 22:58:01 +00:00
Abhishek Upperwal d91fc25491 Added example "chat" with README 2018-03-03 14:05:51 +05:30
Steven Allen b7c2a0a9b9 make go vet happy 2018-03-02 15:01:17 -08: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
Aviv Eyal 062100be4f Formatting 2018-02-22 10:54:35 -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
Chris Dostert f50cbd5d8a
add link to example implementation 2018-01-27 06:56:01 -08:00
Jeromy bbbc040b60 incorporate lgierths opinions 2018-01-07 12:22:05 -08:00
Jeromy 8d84ecd01b functional parameters 2018-01-07 12:22:05 -08:00
Jeromy d04268054f use new constructor for examples 2018-01-07 12:22:05 -08:00
Errol Chevannes 835b66ab73
Fixed typo. 2017-12-29 15:14:46 +00:00
Steven Allen 6b6687f9e4 reset on error in echo 2017-09-13 15:56:55 -07:00
Steven Allen d2dd60a285 reset on error in proxy example. 2017-09-13 15:51:05 -07:00
ssikdar1 7f03ab4b6f Fixing build insctuction so copy and pasting from Readme works
As is go build ./examples/protocol-multiplexing-with-multicodecs
will make the binary name protocol-multiplexing-with-multicodecs
so the next command ./multicodecs won't run
using -o will name the outputfile
2017-09-08 10:22:08 -04:00
verysimplyms 7990195e5f docs: fix typo in README 2017-09-06 09:56:48 +01:00
Steven Allen 00cf69eb49 examples/echo: recommend -secio
When not using -secio, this command prints a warning. This confuses users so we
should just tell users to use it in the instructions.

fixes #179
2017-08-30 17:45:45 -07:00