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 transport to gohermes and use secure session wrapper from hermes-core #82

Merged
merged 3 commits into from
Nov 3, 2017

Conversation

Lagovas
Copy link
Contributor

@Lagovas Lagovas commented Nov 2, 2017

dropped custom transport implementation of transport from gohermes, added Transport interface (that looks like hm_rpc_transport_t in hermes-core) which expect golang wrapper of HermesTransport and should be implemented by client
added HermesTransport that used as adapter between user's transport implementation and C transport interface (hm_rpc_transport) expected by midhermes

also i have updated example that uses updated client with template of config file to avoid passing repeated a lot of params in examples

@Lagovas Lagovas requested a review from vixentael November 2, 2017 17:24
// along with Hermes-core. If not, see <http://www.gnu.org/licenses/>.
//
//
#ifndef GO_MID_HERMES_H
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you sure that this is correct define name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added GO_ prefix because MID_HERMES_H already used in hermes-core (https://github.com/cossacklabs/hermes-core/blob/master/include/hermes/mid_hermes/mid_hermes.h) and compiler doesn't include second time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, yes. better if it would GO_TRANSPORT_H instead GO_MID_HERMES_H

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah :)

@Lagovas Lagovas merged commit 71c1900 into master Nov 3, 2017
@Lagovas Lagovas deleted the lagovas/update-gohermes branch November 16, 2017 09:55
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