Commit Graph

10 Commits

Author SHA1 Message Date
Daniel Sanchez 0333d3256c
Dns discovery (#15)
* Updated vendor source

* Added dns discovery method

* Use latest Go in check workflow

* Use host for nameserver

* Use reference instead of move Host
2022-10-25 11:25:23 +02:00
Daniel Sanchez 9993d2d991
Chat example (#11)
* Added main skeleton for toy-chat example

* Implement chat example main block

* Polish chat and add necessary fixes

* Added author info to crates
2022-10-19 15:58:09 +02:00
Daniel Sanchez c82f4ebe4a
Main test and extended fixes (#10)
* Pipe protocol id

* Fix peer id connect

* Fix WakuPubSubTopic parsing

* Use optional timeout on publish messages

* More test cases

* Update vendor

* Use connect with peer_id

* Fix signal -> event -> message deserialization

* Actively wait for result to arrive the test node

* Clippy happy

* Clippy happy on tests

* Cleaning and adjusting types

* Updated vendor

* Fix keys dance

* Fix lightpush

* Add disconnect test

* Ignore node test for CI

* Add gcc on gh actions

* Reverse installing gcc

* Bring back gcc just for ubuntu and windows

* Removed rust-crypto unused dependency

* Clippy happy
2022-10-17 19:30:07 +02:00
Daniel Sanchez 94e643a250
Implement remaning stack (#9)
* Wrapped lightpush

* Optional signing key on relay a/symmetric publish

* Added lightpush docs

* Implemented filter methods wrappers

* Implemented store methods wrappers

* WakuHandle docs

* Plumbing filter, lightpush and store into node

* Callback RwLock -> Mutex

* Removed wrong todo

* Docs modules titles and links

* Missing link

* Implemented message decoding

* Decrypt docs header

* Added message and payload todos

* Added missing structs fields exposures and constructors

* Payload as base64

* Deserialize base64 encoded strings
Use proper types on payload

* Added MessageIndex type doc header

* Added missing documentation

* Added main lib header doc
2022-10-09 16:50:40 +02:00
Daniel Sanchez aefe45ad65
Relay (#8)
* Refactor node -> management

* Pipe peers methods to waku node handle

* Added relay topic types

* Added content topic, update pubsub topic

* Relay create content/pubsub topic

* Impl Display for topics

* Added symmetric and asymmetric publish

* Implement relay subscriptions methods

* Impl Serialize/Deserialize for Content/Pubsub topic

* Missing serde de::Error import

* Fix enconding typo

* Derive clone for general types

* Plumb relay methods to node

* Add docs to node methods

* Methods should be thread-safe

* Missing thread-safe methods

* Implement send + sync for the node handle

* Stylish space
2022-10-06 15:51:00 +02:00
Daniel Sanchez 98350f4e1f
Use shared state to store callback closures for waku callbacks (#6)
* Use shared state to store callback closures for waku callbacks

* Cargo lock after rebase
2022-10-03 15:39:50 +02:00
Daniel Sanchez d320e55701
Node management (#5)
* Add modules

* Implemented waku config struct

* Implemented waku management functions

* Use optional config in waku_new

* Added config docs

* Fix tests

* Dbg error on gh actions

* Added fail result to dbg

* Removed gh actions dbg

* NodeConfig -> WakuNodeConfig

* Removed duplicated test

* Implemented safety layer on top of node

* Add exclusive running test

* Use static instead of const for global flag

* Do not allow for double initialization

* Update submodule to latest master commit with responses fixes

* Merge tests
2022-10-03 15:21:19 +02:00
Daniel Sanchez 7b7ba2975d
General types (#1)
* Added JsonResponse type

* Add dependencies

* Added wakumessage

* Adjust go build to link with missing simbols on osx

* Added general types

* Nitpick in docs
2022-09-28 16:03:47 +02:00
danielsanchezq 1dd73da1be Make c bindings from go lib build, compile and link 2022-09-22 15:13:16 +02:00
danielsanchezq 0de795496b Main project structure 2022-09-21 16:06:27 +02:00