Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Publish A String Message (i.e. how to go from a string into a tcr.Letter) #19

Closed
istrau2 opened this issue Aug 24, 2021 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@istrau2
Copy link
Contributor

istrau2 commented Aug 24, 2021

I've been looking for documentation regarding letters. I can't find anything except the part that creates a mock letter. If i have a message in the form of a string, how do I turn that into a Letter that is publishable?

Thanks in advance

@houseofcat
Copy link
Owner

Let me know if this covers your use cases, if so feel free to close.

Example application doing publish.
https://github.com/houseofcat/turbocookedrabbit/blob/master/examples/publish/main.go

@istrau2
Copy link
Contributor Author

istrau2 commented Aug 25, 2021

@houseofcat Thanks, I had actually implemented using a Publisher instead of the RabbitService because we don't want failed publishes getting autopublished. It looks like Publisher.Publish() expects a *tcr.Letter instead of an interface...

@houseofcat
Copy link
Owner

Cool, let me know if you are good and/or close out the issue.

@houseofcat houseofcat self-assigned this Aug 25, 2021
@houseofcat houseofcat added the documentation Improvements or additions to documentation label Aug 25, 2021
@houseofcat houseofcat changed the title How to turn a string into a tcr.Letter How To Publish A String Message (i.e. how to go from a string into a tcr.Letter) Aug 25, 2021
@istrau2
Copy link
Contributor Author

istrau2 commented Aug 25, 2021

@houseofcat sorry, I missed the part in your link where it uses the publisher directly. Yes, this is helpful. I will close now. Thanks for the help.

@istrau2 istrau2 closed this as completed Aug 25, 2021
@houseofcat
Copy link
Owner

All good just making sure you are happy.

Always love to see new users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants