mirror of
https://github.com/vacp2p/dasy.git
synced 2026-01-09 14:58:06 -05:00
33 lines
1007 B
Markdown
33 lines
1007 B
Markdown
# DaSy 🌼
|
||
|
||

|
||
[](LICENSE)
|
||
[](https://godoc.org/github.com/vacp2p/dasy)
|
||
[](https://goreportcard.com/report/github.com/vacp2p/dasy)
|
||
[](https://travis-ci.com/vacp2p/dasy)
|
||
|
||
> /ˈdeɪzi/
|
||
>
|
||
> **Da**ta **Sy**nc Client
|
||
|
||
This repository implements a basic [messaging data sync client](#TODO) that operates on top of [mvds](https://github.com/vacp2p/mvds).
|
||
|
||
## Usage
|
||
|
||
Listening to messages
|
||
|
||
```go
|
||
|
||
postchan := make(chan event.Payload)
|
||
|
||
client.Feed(protobuf.Message_POST).Subscribe(postchan)
|
||
|
||
for {
|
||
post := <-postchan
|
||
fmt.Printf("%+v\n", post)
|
||
}
|
||
|
||
```
|