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

Another take on HTTP mode #41

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Another take on HTTP mode #41

wants to merge 4 commits into from

Conversation

utrack
Copy link
Contributor

@utrack utrack commented May 25, 2017

This PR adds communication over HTTP, so it would be possible to use existing server to serve gops traffic. All previous modes are preserved as-is; so both local and rawsocket-remote modes are still there.

I've refactored client code a bit so that both socket and HTTP modes would be possible to use; now there's a Client iface implemented by ClientTCP and ClientHTTP that is passed to every gops command's function instead of raw TCPAddr.

To use it run gops like this: gops pprof-cpu http://localhost:port/handler

@rakyll rakyll force-pushed the master branch 2 times, most recently from f4fa19b to 8d0aff5 Compare September 4, 2017 17:09
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.

None yet

1 participant