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

can't extract field of type anyPointer into a Go capnp.Client #159

Open
CGamesPlay opened this issue Sep 11, 2020 · 1 comment
Open

can't extract field of type anyPointer into a Go capnp.Client #159

CGamesPlay opened this issue Sep 11, 2020 · 1 comment

Comments

@CGamesPlay
Copy link

The pogs module doesn't have seem to have support for anyPointer. When we have a known interface, we can deserialize into a capnp.Client object, however the module cannot deserialize anyPointer into anything.

I believe the fix is as simple as adding the anyPointer type to this line, but I'm not sure: https://github.com/capnproto/go-capnproto2/blob/master/pogs/extract.go#L397

Use case: my schema looks like this. My goal is to send a set of capabilities across the wire, but in a dynamic fashion. I have code working for this that doesn't use pogs, so I know the concept works.

struct Interface @0xaa6a48266712f6db {
  id @0 :UInt64;
  capability @1 :Capability;
}
@zombiezen
Copy link
Contributor

SGTM, and agreed that would be the function that would be changed. Happy to review a PR for this.

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

No branches or pull requests

2 participants