luminati

package module
v0.0.0-...-f7c6163 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 5 Imported by: 0

README

luminati

A go library to use luminati.io proxy service. Personal project just to do something meaningful while trying to learn a little bit of golang

CircleCI master branch

CircleCI dev branch

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisities

Just import like any other go library

import "github.com/elph/luminati"
Using it
c := luminati.NewClient("luminati-user", "luminati-pwd", "luminati-host", 989898)
request, _ := http.NewRequest("GET", "http://www.google.com", nil)
resp, err := c.Do(request)

Running the tests

go test

License

This project is licensed under the MIT License - see the LICENSE file for details

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	SessionID string
	// contains filtered or unexported fields
}

Client represents a luminati.io client that setups internally the proxy

func NewClient

func NewClient(username string, password string, host string, port int) Client

NewClient Creates a Client with the luminati.io credentials

func (*Client) Do

func (c *Client) Do(request *http.Request) (resp *http.Response, err error)

Do executes a reqeuquest using a proxy from luminaati.io network

func (*Client) NewSession

func (c *Client) NewSession()

NewSession generates a new SessionId to be used with luminati network

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL