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

Support type parameters in autowire.Server #41

Open
zlangbert opened this issue Aug 20, 2015 · 1 comment
Open

Support type parameters in autowire.Server #41

zlangbert opened this issue Aug 20, 2015 · 1 comment

Comments

@zlangbert
Copy link

Goal would be to having something like this work:

object Router {
 def route[T](apiImpl: T, path: String, data: Array[Byte]): Future[_] = {
   AutowireRouter.route[T](apiImpl)(
    autowire.Core.Request(path.split("/"),
    Unpickle[Map[String, ByteBuffer]].fromBytes(ByteBuffer.wrap(data)))
  )
 }
}

According to @lihaoyi this will take a major refactoring of the macros

@mscharley
Copy link

I think I might be running into this too: https://github.com/mscharley/scalajs-electron-demo/blob/791e088f3c0ed26fe9c27e8895f75df505d1dfee/src/main/scala/autowire/electronipc/ElectronIpcWireServer.scala

What needs to be done to get this sort of thing working?

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

2 participants