RePublish
nats.js.api.RePublish dataclass #
RePublish(
src: Optional[str] = None,
dest: Optional[str] = None,
headers_only: Optional[bool] = None,
)
Bases: Base
RePublish is for republishing messages once committed to a stream. The original subject cis remapped from the subject pattern to the destination pattern.
from_response classmethod #
from_response(resp: Dict[str, Any]) -> _B
Read the class instance from a server response.
Unknown fields are ignored ("open-world assumption").
Source code in nats/js/api.py
145 146 147 148 149 150 151 152 153 154 155 | |
evolve #
evolve(**params) -> _B
Return a copy of the instance with the passed values replaced.
Source code in nats/js/api.py
157 158 159 | |
as_dict #
as_dict() -> Dict[str, object]
Return the object converted into an API-friendly dict.
Source code in nats/js/api.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |