-
Notifications
You must be signed in to change notification settings - Fork 88
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
Service feature #96
base: v2
Are you sure you want to change the base?
Service feature #96
Conversation
…s Services to be registered similar to net/rpc package. Add exported functions Client.RegisterService, Client.RegisterServiceName Client.UnregisterService and Client.CallService.
…uires new dependency github.com/mitchellh/mapstructure
Updating the Authorizer and Interceptor interfaces
… 'On' to topics instead of registrating them as procedures. Client.UnregisterServcice unsubscribes from topic. Use locks in the tests to avoid race conditions.
…em as a collection.
…s Services to be registered similar to net/rpc package. Add exported functions Client.RegisterService, Client.RegisterServiceName Client.UnregisterService and Client.CallService.
…uires new dependency github.com/mitchellh/mapstructure
… 'On' to topics instead of registrating them as procedures. Client.UnregisterServcice unsubscribes from topic. Use locks in the tests to avoid race conditions.
…em as a collection.
…e to CamelCase. Use log.Println instead of log.Print in Client.registerService.
I hope I did syncing dev with v2 correct. Looks funky with git rebase. |
The comment for |
That line is wrong. I am sorry, I fixed it. |
I run into a problem with mapstructure. You can't customize decoding of structs with methods. It requires hook functions which adds a lot of complexity to turnpike to enable customizing decoding. I prefer the way encoding/json works with methods on the types instead of hook functions. I would like to replace mapstructure with encoding/json. |
Add Service feature similar to net/rpc registration of service methods.
Adds "github.com/mitchellh/mapstructure" as dependency.