server

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: Apache-2.0 Imports: 19 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.

type ReleveledLogo struct {
	*logo.Logger
	*http.Request

	Verbose bool
}

repo:hashicorp/go-retryablehttp /v\.(Error|Info|Debug|Warn)\("/

func (ReleveledLogo) Debug added in v0.16.0

func (l ReleveledLogo) Debug(msg string, keysAndValues ...interface{})

func (ReleveledLogo) Error added in v0.16.0

func (l ReleveledLogo) Error(msg string, keysAndValues ...interface{})

func (ReleveledLogo) Info added in v0.16.0

func (l ReleveledLogo) Info(msg string, keysAndValues ...interface{})

func (ReleveledLogo) Warn added in v0.16.0

func (l ReleveledLogo) Warn(msg string, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

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