gsproxy

package module
v0.0.0-...-017b809 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2020 License: BSD-3-Clause Imports: 13 Imported by: 0

README

gsproxy is a simple http proxy with basic authentication support.

Installing from source

To install, run

$ go get github.com/ifruns/gsproxy

Build

$ go install github.com/ifruns/gsproxy/cmd/gsproxy 

You will now find a gsproxy binary in your $GOPATH/bin directory.

Usage

Start proxy

$ gsproxy -auth test:1234

Run gsproxy -help for more information.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandStringBytesMaskImprSrc

func RandStringBytesMaskImprSrc(n int) string

RandStringBytesMaskImprSrc generate fixed length random string from http://stackoverflow.com/questions/22892120/how-to-generate-a-random-string-of-a-fixed-length-in-golang

Types

type BadRequestError

type BadRequestError struct {
	// contains filtered or unexported fields
}

func (*BadRequestError) Error

func (b *BadRequestError) Error() string

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(Addr, credential string, genAuth bool) *Server

NewServer create a proxy server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

Start a proxy server

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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