Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

Improve type safety for command, forward and effect handlers #42

Open
marcellanz opened this issue Oct 23, 2020 · 2 comments
Open

Improve type safety for command, forward and effect handlers #42

marcellanz opened this issue Oct 23, 2020 · 2 comments

Comments

@marcellanz
Copy link
Contributor

The Go gRPC protobuf compiler plugin doesn't expose service descriptors. As a consequence, command, forward and effect handlers require the user to provide unchecked plain strings to reference a commands gRPC service name or services method names. The same applies for service names and command names used with effects and forwards.

Provide an idiomatic way to improve type safety in this regard.

@marcellanz
Copy link
Contributor Author

It seems to be something is happening to export service descriptors: grpc/grpc-go#3762 (comment)

@marcellanz
Copy link
Contributor Author

Service descriptors are now exported: grpc/grpc-go#4035

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant