pac

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pac

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

Pac represents a pac service configuration.

func NewPac

func NewPac(storage *storage.Storage, name string) *Pac

NewPac creates a new pac service.

func (*Pac) Generate

func (pac *Pac) Generate(proxies []string, rules map[string]bool)

Generate generates the pac file.

func (*Pac) GetName

func (pac *Pac) GetName() string

GetName returns the name of the pac file.

func (*Pac) GetStorage

func (pac *Pac) GetStorage() *storage.Storage

GetStorage returns the storage.

Jump to

Keyboard shortcuts

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