32 Commits

Author SHA1 Message Date
Daniel Sanchez Quiros
4edc5cc70f Reverse installing gcc 2022-10-17 19:03:33 +02:00
Daniel Sanchez Quiros
1ee0a17dc3 Add gcc on gh actions 2022-10-17 19:02:18 +02:00
Daniel Sanchez Quiros
d1ed1b6623 Ignore node test for CI 2022-10-17 18:49:53 +02:00
Daniel Sanchez Quiros
5c2ff26971 Add disconnect test 2022-10-17 18:40:18 +02:00
Daniel Sanchez Quiros
e54d744471 Fix lightpush 2022-10-14 12:50:21 -05:00
Daniel Sanchez Quiros
39ee1edc45 Fix keys dance 2022-10-14 11:59:44 -05:00
Daniel Sanchez Quiros
ccca37f756 Updated vendor 2022-10-14 09:21:23 -05:00
Daniel Sanchez Quiros
02ce74d520 Cleaning and adjusting types 2022-10-14 09:20:39 -05:00
Daniel Sanchez Quiros
e718a19713 Clippy happy on tests 2022-10-12 11:38:22 -05:00
Daniel Sanchez Quiros
7d66939668 Clippy happy 2022-10-12 11:36:43 -05:00
Daniel Sanchez Quiros
ffe30171e2 Actively wait for result to arrive the test node 2022-10-12 11:36:06 -05:00
Daniel Sanchez Quiros
464fbcd98b Fix signal -> event -> message deserialization 2022-10-12 11:35:27 -05:00
Daniel Sanchez Quiros
c1ac5a939d Use connect with peer_id 2022-10-10 18:38:46 -05:00
Daniel Sanchez Quiros
15f4f73c6f Update vendor 2022-10-10 18:35:44 -05:00
Daniel Sanchez Quiros
3ee00f6087 More test cases 2022-10-10 18:34:58 -05:00
Daniel Sanchez Quiros
8219d290c0 Use optional timeout on publish messages 2022-10-10 11:07:40 -05:00
Daniel Sanchez Quiros
ed3fa3e0e8 Fix WakuPubSubTopic parsing 2022-10-10 10:52:17 -05:00
Daniel Sanchez Quiros
29c9cd9f6c Fix peer id connect 2022-10-09 17:08:39 -05:00
Daniel Sanchez Quiros
592338b35b Pipe protocol id 2022-10-09 16:32:18 -05: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
fb0805ce40
Peers handling (#7)
* Refactor node -> management

* Implemented peers

* Pipe peers methods to waku node handle
2022-10-06 15:28:25 +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
84d251ff1b
Hide waku-sys binding warnings (#4) 2022-09-29 16:22:06 +02:00
Daniel Sanchez
ba74c68c60
Events (#3)
* Added topics type aliases

* More general type aliases

* Implement event module

* Added public interface for WakuMessageEvent

* Skip fat pointers in event callback

* Nitpick and docs for set_event_callback
2022-09-29 15:17:52 +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
Daniel Sanchez
7ce8cadaa5
Ci and multiplatform build (#2)
* Make go discoverable in unix systems

* Refactor build script

* Fix which path

* Fix typo in error message

* Added gh actions ci

* Fix lib_dir path

* Use checkout v3

* Use recursive submodules

* Filter branches
Use submodule force update

* Use git directly instead of action

* Build go with relative paths

* Added missing cargo config file

* Use target os instead of family

* Add targets to matrix

* Try to use default for target

* Set toolchain

* Fix toolchain matrix
2022-09-28 15:45:26 +02:00
danielsanchezq
5c35417f49 Tiny docs 2022-09-23 08:47:28 +02:00
danielsanchezq
1dd73da1be Make c bindings from go lib build, compile and link 2022-09-22 15:13:16 +02:00
danielsanchezq
1b132c8a1f Moved go-waku submodule to v0.2.2 2022-09-21 16:09:32 +02:00
danielsanchezq
0de795496b Main project structure 2022-09-21 16:06:27 +02:00