client

package
v0.0.0-...-7938e08 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func API

func API(sg *SigGroup, verbose bool, debug bool)

func Config

func Config() *clientConfig

func Control

func Control(ctx context.Context, sg *SigGroup)

func Serve

func Serve(ctx context.Context, verbose bool, debug bool)

Types

type SigGroup

type SigGroup struct {
	WatchChannel chan os.Signal
	StartChannel chan transfer.Type
	StopChannel  chan transfer.Type
	// contains filtered or unexported fields
}

func NewSigGroup

func NewSigGroup() *SigGroup

func (*SigGroup) Detection

func (sg *SigGroup) Detection()

func (*SigGroup) StartHttpProxy

func (sg *SigGroup) StartHttpProxy()

func (*SigGroup) StartSocksProxy

func (sg *SigGroup) StartSocksProxy()

func (*SigGroup) StopHttpProxy

func (sg *SigGroup) StopHttpProxy()

func (*SigGroup) StopProxy

func (sg *SigGroup) StopProxy()

func (*SigGroup) StopSocksProxy

func (sg *SigGroup) StopSocksProxy()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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