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

Add OpCode method to autogenerated operation types #30

Open
jn9e9 opened this issue Mar 4, 2021 · 0 comments
Open

Add OpCode method to autogenerated operation types #30

jn9e9 opened this issue Mar 4, 2021 · 0 comments

Comments

@jn9e9
Copy link
Collaborator

jn9e9 commented Mar 4, 2021

In order to reduce chance of picking incorrect opcode in the operations_client.go, define it in an OpCode method attached to each request type.
Would it be possible to deduce the opcode from the type of request? As in have a method on each type of request to return the corresponding opcode? That would remove one parameter to operation

Originally posted by @hug-dev in #28 (comment)

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

No branches or pull requests

1 participant