proxy

package
v0.4.27 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 30 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

type BackendConfig

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

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

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
	Tls          *endpoints.TlsConfig
	RequestsChan chan *endpoints.Request
}

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