access

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessInit

func AccessInit(address string, protocal string)

func AccessProxyIDSet

func AccessProxyIDSet(proxyID string)

func AuthFailHandler

func AuthFailHandler(w http.ResponseWriter, r *http.Request)

func NoProxyHandler

func NoProxyHandler(w http.ResponseWriter, r *http.Request)

func PublicFailDelay

func PublicFailDelay()

Types

type Access

type Access interface {
}

func NewHttpAccess

func NewHttpAccess(addr string, timeout int) Access

func NewHttpsAccess

func NewHttpsAccess(addr string, timeout int, config *tls.Config) Access

type HttpAccess

type HttpAccess struct {
	Timeout int
	Address string
}

func (*HttpAccess) ServeHTTP

func (acc *HttpAccess) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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