markbates / markbates/goth

Just a question: how may I tell "goth" library what proxy server it has to use?

Open
#515 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
6.6k
Forks
631
PR merge metrics
No merged PRs in 30d

Description

I know this is not an issue but a 'feature request' or a 'how to' question.
I have an issue I can not address when using this gorgeous library.

I guess I should have to configure something like this:
proxyUrl, err := url.Parse("http://proxyIp:proxyPort")
myClient := &http.Client{
Transport: &http.Transport{
Proxy: http.ProxyURL(proxyUrl),
},
}

I don't know how to embed something like that inside a call from "goth" to "Azure" (por example).
When using "goth" I have no access to the http.Client instance variable it uses, hence I can not do anything like that.

My request may sound weird but, at the CPD I am working on, I can not trust one single proxy server, so when the one I am pointing to does not respond I need to point to other, on the fly. And for doing so I need the brick I am requesting.

Thanks in advance.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by tracing how goth creates or uses its HTTP client for Azure provider calls, then determine where proxy configuration and runtime proxy changes could be exposed; done would mean the library documents or supports selecting and changing proxy servers for those calls.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.