Help us shape the future of Go! Take the 2026 Go Developer Survey

network

package
v2.11.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyFromNone

type ProxyFromNone struct{}

The "none" proxy source module disables the use of network proxy.

func (ProxyFromNone) CaddyModule

func (p ProxyFromNone) CaddyModule() caddy.ModuleInfo

func (ProxyFromNone) ProxyFunc

func (p ProxyFromNone) ProxyFunc() func(*http.Request) (*url.URL, error)

ProxyFunc implements ProxyFuncProducer.

func (ProxyFromNone) UnmarshalCaddyfile

func (p ProxyFromNone) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

type ProxyFromURL

type ProxyFromURL struct {
	URL string `json:"url"`
	// contains filtered or unexported fields
}

The "url" proxy source uses the defined URL as the proxy

func (ProxyFromURL) CaddyModule

func (p ProxyFromURL) CaddyModule() caddy.ModuleInfo

CaddyModule implements Module.

func (*ProxyFromURL) Provision

func (p *ProxyFromURL) Provision(ctx caddy.Context) error

func (ProxyFromURL) ProxyFunc

func (p ProxyFromURL) ProxyFunc() func(*http.Request) (*url.URL, error)

ProxyFunc implements ProxyFuncProducer.

func (*ProxyFromURL) UnmarshalCaddyfile

func (p *ProxyFromURL) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

func (ProxyFromURL) Validate

func (p ProxyFromURL) Validate() error

Validate implements Validator.

Jump to

Keyboard shortcuts

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