26 Commits

Author SHA1 Message Date
Daniel Sanchez Quiros
7868dfde9a Methods should be thread-safe 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
7e5d060032 Add docs to node methods 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
e5ad24ec8b Plumb relay methods to node 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
bec48a1f38 Derive clone for general types 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
52984fcdb5 Fix enconding typo 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
4c7340037c Missing serde de::Error import 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
ba777424f3 Impl Serialize/Deserialize for Content/Pubsub topic 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
85f6c1c987 Implement relay subscriptions methods 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
0f7a4ae22c Added symmetric and asymmetric publish 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
6a427280bb Impl Display for topics 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
ed0c9ea19c Relay create content/pubsub topic 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
0621e87370 Added content topic, update pubsub topic 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
8533517bcd Added relay topic types 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
b8b45f7f69 Pipe peers methods to waku node handle 2022-10-06 15:32:46 +02:00
Daniel Sanchez Quiros
f331dae7f8 Refactor node -> management 2022-10-06 15:32:40 +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