mode

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMode

func IsMode(s string) bool

IsMode returns if `s` is a valid `Mode`.

Note: It will automatically uppercase `s`.

Types

type Mode

type Mode string

Mode is the type of the proxy as specified in the PAC content. Called `Mode` because `type` is a Golang reserved word.

const (
	Direct Mode = "DIRECT"
	Proxy  Mode = "PROXY"
	Socks  Mode = "SOCKS"
	Socks5 Mode = "SOCKS5"
)

List of possible modes.

func (Mode) String

func (m Mode) String() string

String is the Stringer interface implementation.

Jump to

Keyboard shortcuts

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