server

package
v0.0.0-...-0b269b6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(opt *common.Options)

Run proxy server with a user defined listener.

An active log have 2 receivers, especially stdout and into file if opt.Output isn't empty. Then close the proxy server if it receives a signal that interrupts the program.

func Stop

func Stop(ctx context.Context)

Stop will terminate proxy server

Types

type Proxy

type Proxy struct {
	HTTPProxy *goproxy.ProxyHttpServer
	Options   *common.Options
}

Proxy as ServeMux in proxy server handler.

Jump to

Keyboard shortcuts

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