franz-client

Crates.iofranz-client
lib.rsfranz-client
version0.7.2
sourcesrc
created_at2024-09-25 23:56:50.410415
updated_at2024-10-29 19:33:02.55476
descriptionclient for franz server written in rust
homepagehttps://github.com/MostlyMaxi/franz-client
repositoryhttps://github.com/MostlyMaxi/franz-client
max_upload_size
id1386825
size11,261
maxi (mostlymaxi)

documentation

https://docs.rs/franz-client

README

Franz Client

Protocol

[message length : u32]([key]=[value] : utf8)

mandatory keys

  • version
  • topic
  • api

example key-values

version=1,topic=test_topic_name,api=produce

msg1\nmsg2\nmsg3\n

Example

void franz_send(franz_producer_t tx, char *data, size_t len);

This example assumes you have a franz server running on port 8085 bound to localhost.

You can spin up a test server with franz --path /tmp/franz-test then test the client with cargo run --example client

Commit count: 2

cargo fmt