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

Service feature #96

Open
wants to merge 17 commits into
base: v2
Choose a base branch
from
Open

Service feature #96

wants to merge 17 commits into from

Conversation

marshauf
Copy link
Collaborator

@marshauf marshauf commented Sep 4, 2015

Add Service feature similar to net/rpc registration of service methods.

Adds "github.com/mitchellh/mapstructure" as dependency.

Marcel Hauf and others added 15 commits September 1, 2015 20:32
…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.
…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.
…e to CamelCase. Use log.Println instead of log.Print in Client.registerService.
@marshauf
Copy link
Collaborator Author

I hope I did syncing dev with v2 correct. Looks funky with git rebase.

@jcelliott
Copy link
Owner

The comment for RegisterService says that one of the requirements for a service method is "two arguments, both of exported type". What does that mean?

@marshauf
Copy link
Collaborator Author

That line is wrong. I am sorry, I fixed it.

@marshauf
Copy link
Collaborator Author

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.

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

Successfully merging this pull request may close these issues.

2 participants