proxy

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInsecureClient

func NewInsecureClient() *http.Client

func WithAddr

func WithAddr(addr string) func(proxy *Proxy)

func WithHttpClient

func WithHttpClient(httpClient *http.Client) func(proxy *Proxy)

func WithServerUrl

func WithServerUrl(serverUrl string) func(proxy *Proxy)

func WithToken

func WithToken(token string) func(proxy *Proxy)

Types

type Proxy

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

func New

func New(options ...func(*Proxy)) *Proxy

func (*Proxy) Run

func (s *Proxy) Run() error

Jump to

Keyboard shortcuts

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