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

Proxy support? #15

Open
qwerty32123 opened this issue Nov 4, 2020 · 1 comment
Open

Proxy support? #15

qwerty32123 opened this issue Nov 4, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@qwerty32123
Copy link

Hello guys, wondering if its possible to hide all the requests under proxy, for obvius reasons i dont want to use this in my main account, i want to run it in my raspberry pi and collect data every X mins.
I dont know a lot of go but yes something about coding, i see here you declare the http client, creating new type

type BDOMarketplaceClient struct {

according to stackoverflow you can setup proxy with os or directly in the client constructor.
https://stackoverflow.com/questions/14661511/setting-up-proxy-for-http-client

@qwerty32123
Copy link
Author

oh okay inside marketplace.go where the func NewBdoMartkplaceclient is declared i can add there any client parameters i want, i can myself implement proxy suport just need to figure out how but would be here where you return the client object.

func NewBDOMarketplaceClient(url string, headers map[string]string, token, timeout string) *BDOMarketplaceClient {

@kookehs kookehs added the enhancement New feature or request label Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants