pacsandbox

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2016 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotEnoughArgumentsError

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

NotEnoughArgumentsError is used where a JS call has been marshalled to go wthout enough args

func (*NotEnoughArgumentsError) Error

func (e *NotEnoughArgumentsError) Error() string

type PacSandbox

type PacSandbox struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

PacSandbox holds state for the pac sandbox instance

func New

func New(pac string) *PacSandbox

New is the constructor for PacSandbox

func (*PacSandbox) ProxyFor

func (p *PacSandbox) ProxyFor(u string) (string, error)

ProxyFor will take a URL, run it through the PAC logic and produce a PAC result string

func (*PacSandbox) Reset

func (p *PacSandbox) Reset()

PurgeCache will (re)initialize internal caches

Jump to

Keyboard shortcuts

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