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

Ability to inject empty messages into Transport #21

Open
cohix opened this issue Oct 28, 2020 · 0 comments
Open

Ability to inject empty messages into Transport #21

cohix opened this issue Oct 28, 2020 · 0 comments
Labels
transports Issues related to transport plugins

Comments

@cohix
Copy link
Contributor

cohix commented Oct 28, 2020

When using a non-default Message type, it's essential that incoming messages can be unmarshalled into the correct struct. User should be able to provide a function that, given the Message's Type(), returns an empty struct.

Something like UseMsgGenerator(func(msgTypeString) Message)

@cohix cohix added the transports Issues related to transport plugins label Oct 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
transports Issues related to transport plugins
Projects
None yet
Development

No branches or pull requests

1 participant