httpproxy

package
v0.0.0-...-61b053f Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Debug(s string)
	Warn(s string)
	// contains filtered or unexported methods
}

type Loop

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

func NewLoop

func NewLoop(logger Logger, settings settings.HTTPProxy) *Loop

func (*Loop) ApplyStatus

func (l *Loop) ApplyStatus(ctx context.Context, status models.LoopStatus) (
	outcome string, err error,
)

func (*Loop) GetSettings

func (l *Loop) GetSettings() (settings settings.HTTPProxy)

func (*Loop) GetStatus

func (l *Loop) GetStatus() (status models.LoopStatus)

func (*Loop) Run

func (l *Loop) Run(ctx context.Context, done chan<- struct{})

func (*Loop) SetSettings

func (l *Loop) SetSettings(ctx context.Context, settings settings.HTTPProxy) (
	outcome string,
)

type Server

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

func New

func New(ctx context.Context, address string, logger Logger,
	stealth, verbose bool, username, password string,
	readHeaderTimeout, readTimeout time.Duration,
) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context, errorCh chan<- error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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