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

proxy

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 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 added in v0.4.6

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 added in v1.0.0

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 added in v0.4.6

type CaddyLogWriter struct{}

func (CaddyLogWriter) CaddyModule added in v0.4.6

func (CaddyLogWriter) CaddyModule() caddy.ModuleInfo

func (CaddyLogWriter) OpenWriter added in v0.4.6

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

func (*CaddyLogWriter) Provision added in v0.4.6

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

func (CaddyLogWriter) String added in v0.4.6

func (CaddyLogWriter) String() string

func (*CaddyLogWriter) UnmarshalCaddyfile added in v0.4.6

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

func (CaddyLogWriter) WriterKey added in v0.4.6

func (CaddyLogWriter) WriterKey() string

type CaddyWebBackend added in v0.4.6

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

func NewCaddyWebBackend added in v0.4.6

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

func (*CaddyWebBackend) Requests added in v0.4.6

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

func (*CaddyWebBackend) Run added in v0.4.6

func (c *CaddyWebBackend) Run() error

func (*CaddyWebBackend) Stop added in v1.0.0

func (c *CaddyWebBackend) Stop() error

type CaddyWebBackendConfig added in v0.4.6

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

type CaddyfileBackend added in v0.4.6

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

func NewCaddyfileBackend added in v0.4.6

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

func (*CaddyfileBackend) Run added in v0.4.6

func (b *CaddyfileBackend) Run() error

type CaddyfileBackendConfig added in v0.4.6

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 added in v0.4.6

type ZrokRequestsMiddleware struct{}

func (ZrokRequestsMiddleware) CaddyModule added in v0.4.6

func (ZrokRequestsMiddleware) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*ZrokRequestsMiddleware) Provision added in v0.4.6

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

Provision implements caddy.Provisioner.

func (ZrokRequestsMiddleware) ServeHTTP added in v0.4.6

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*ZrokRequestsMiddleware) UnmarshalCaddyfile added in v0.4.6

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

UnmarshalCaddyfile implements caddyfile.Unmarshaler.

func (ZrokRequestsMiddleware) Validate added in v0.4.6

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