pac

package
v0.0.0-...-fca866f Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New() (*Handler, error)

func (*Handler) AddCustomWebsite

func (h *Handler) AddCustomWebsite(webSite string) error

func (*Handler) DelCustomWebsites

func (h *Handler) DelCustomWebsites(id int64) error

func (*Handler) GetConfig

func (h *Handler) GetConfig() (*model.PacHandlerConfig, error)

func (*Handler) GetCurrentCron

func (h *Handler) GetCurrentCron() string

func (*Handler) GetCurrentPAC

func (h *Handler) GetCurrentPAC() string

func (*Handler) ListCustomWebsites

func (h *Handler) ListCustomWebsites() ([]*model.PacWebSite, error)

func (*Handler) ManualGeneratePac

func (h *Handler) ManualGeneratePac() error

func (*Handler) UpdateConfig

func (h *Handler) UpdateConfig(c *model.PacHandlerConfig) error

func (*Handler) UpdateCron

func (h *Handler) UpdateCron(cronString string) error

Jump to

Keyboard shortcuts

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