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

proxy

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCaddyLoggingWriter

func SetCaddyLoggingWriter(w io.WriteCloser)

Types

type Backend

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

func NewBackend

func NewBackend(cfg *BackendConfig) (*Backend, error)

func (*Backend) Run

func (b *Backend) Run() error

func (*Backend) Stop

func (b *Backend) Stop() error

type BackendConfig

type BackendConfig struct {
	IdentityPath    string
	EndpointAddress string
	ShrToken        string
	Insecure        bool
	Requests        chan *endpoints.Request
	SuperNetwork    bool
}

type CaddyLogWriter

type CaddyLogWriter struct{}

func (CaddyLogWriter) CaddyModule

func (CaddyLogWriter) CaddyModule() caddy.ModuleInfo

func (CaddyLogWriter) OpenWriter

func (CaddyLogWriter) OpenWriter() (io.WriteCloser, error)

func (*CaddyLogWriter) Provision

func (w *CaddyLogWriter) Provision(_ caddy.Context) error

func (CaddyLogWriter) String

func (CaddyLogWriter) String() string

func (*CaddyLogWriter) UnmarshalCaddyfile

func (*CaddyLogWriter) UnmarshalCaddyfile(_ *caddyfile.Dispenser) error

func (CaddyLogWriter) WriterKey

func (CaddyLogWriter) WriterKey() string

type CaddyWebBackend

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

func NewCaddyWebBackend

func NewCaddyWebBackend(cfg *CaddyWebBackendConfig) (*CaddyWebBackend, error)

func (*CaddyWebBackend) Requests

func (c *CaddyWebBackend) Requests() func() int32

func (*CaddyWebBackend) Run

func (c *CaddyWebBackend) Run() error

func (*CaddyWebBackend) Stop

func (c *CaddyWebBackend) Stop() error

type CaddyWebBackendConfig

type CaddyWebBackendConfig struct {
	IdentityPath string
	WebRoot      string
	ShrToken     string
	Requests     chan *endpoints.Request
}

type CaddyfileBackend

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

func NewCaddyfileBackend

func NewCaddyfileBackend(cfg *CaddyfileBackendConfig) (*CaddyfileBackend, error)

func (*CaddyfileBackend) Run

func (b *CaddyfileBackend) Run() error

func (*CaddyfileBackend) Stop added in v2.0.8

func (b *CaddyfileBackend) Stop() error

type CaddyfileBackendConfig

type CaddyfileBackendConfig struct {
	CaddyfilePath string
	Shr           *sdk.Share
	Requests      chan *endpoints.Request
}

type Frontend

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

func NewFrontend

func NewFrontend(cfg *FrontendConfig) (*Frontend, error)

func (*Frontend) Run

func (h *Frontend) Run() error

type FrontendConfig

type FrontendConfig struct {
	IdentityName    string
	ShrToken        string
	Address         string
	ResponseHeaders []string
	Tls             *endpoints.TlsConfig
	RequestsChan    chan *endpoints.Request
	SuperNetwork    bool
}

func DefaultFrontendConfig

func DefaultFrontendConfig(identityName string) *FrontendConfig

type ZrokRequestsMiddleware

type ZrokRequestsMiddleware struct{}

func (ZrokRequestsMiddleware) CaddyModule

func (ZrokRequestsMiddleware) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*ZrokRequestsMiddleware) Provision

func (m *ZrokRequestsMiddleware) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (ZrokRequestsMiddleware) ServeHTTP

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*ZrokRequestsMiddleware) UnmarshalCaddyfile

func (m *ZrokRequestsMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

func (ZrokRequestsMiddleware) Validate

func (m ZrokRequestsMiddleware) Validate() error

Validate implements caddy.Validator.

Jump to

Keyboard shortcuts

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