sysproxy

package
v0.0.0-...-6f0707a Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Unlicense Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OtherSystemProxy

type OtherSystemProxy struct{}

func (*OtherSystemProxy) Status

func (p *OtherSystemProxy) Status() (*SystemProxyStatus, error)

func (*OtherSystemProxy) TurnOff

func (p *OtherSystemProxy) TurnOff() error

func (*OtherSystemProxy) TurnOn

func (p *OtherSystemProxy) TurnOn(addrport string) error

type SystemProxy

type SystemProxy interface {
	TurnOn(addrPort string) error
	TurnOff() error

	Status() (*SystemProxyStatus, error)
}

func NewSystemProxy

func NewSystemProxy() SystemProxy

type SystemProxyStatus

type SystemProxyStatus struct {
	State bool `json:"state"`
}

Jump to

Keyboard shortcuts

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