proxy

package
v0.0.0-...-e6d3209 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyServer

type ProxyServer struct {
	TargetUrl string
	Token     string
	Method    string
	Body      interface{}
	Err       chan string
}

func (*ProxyServer) Request

func (this *ProxyServer) Request(user string, pwd string) (*http.Response, error)

func (*ProxyServer) ServeHTTP

func (this *ProxyServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*ProxyServer) StartServer

func (this *ProxyServer) StartServer() *http.Server

Jump to

Keyboard shortcuts

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