naps 1.0.0

NATS server proxy service to relay and forward custom topics and subjects
Documentation
1
2
3
4
5
6
7
8
9
10
use std::collections::BTreeMap;

use bytes::Bytes;

#[derive(Debug, Clone, PartialEq)]
pub struct Msg {
    pub subject: String,
    pub headers: BTreeMap<String, Vec<String>>,
    pub data: Bytes,
}