1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-27 10:53:42 +02:00

api/README.md: update.

This commit is contained in:
Henrik Hautakoski 2024-03-05 15:00:04 +01:00
parent 83d57a09c4
commit 4c843f16bf

View file

@ -2,7 +2,7 @@
## Usage ## Usage
The api is designed with callback functions that are called when messages arrive The api is designed with go channels.
## Example ## Example
@ -31,7 +31,7 @@ func main() {
ChainID: "1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4", // Wax mainnet. ChainID: "1064487b3cd1a897ce03ae5b6a865651747e2e152090f99c1d19d44e01aea5a4", // Wax mainnet.
}) })
// Create client // Create thalos client
codec, err := message.GetCodec("json") codec, err := message.GetCodec("json")
if err != nil { if err != nil {
fmt.Println("Failed to get json codec") fmt.Println("Failed to get json codec")
@ -81,9 +81,6 @@ func main() {
} }
} }
} }
``` ```
## Message channels and types ## Message channels and types