Documentation
¶
Index ¶
- func SetCaddyLoggingWriter(w io.WriteCloser)
- type Backend
- type BackendConfig
- type CaddyLogWriter
- func (CaddyLogWriter) CaddyModule() caddy.ModuleInfo
- func (CaddyLogWriter) OpenWriter() (io.WriteCloser, error)
- func (w *CaddyLogWriter) Provision(_ caddy.Context) error
- func (CaddyLogWriter) String() string
- func (*CaddyLogWriter) UnmarshalCaddyfile(_ *caddyfile.Dispenser) error
- func (CaddyLogWriter) WriterKey() string
- type CaddyWebBackend
- type CaddyWebBackendConfig
- type CaddyfileBackend
- type CaddyfileBackendConfig
- type Frontend
- type FrontendConfig
- type ZrokRequestsMiddleware
- func (ZrokRequestsMiddleware) CaddyModule() caddy.ModuleInfo
- func (m *ZrokRequestsMiddleware) Provision(ctx caddy.Context) error
- func (m ZrokRequestsMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (m *ZrokRequestsMiddleware) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m ZrokRequestsMiddleware) Validate() error
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)
type BackendConfig ¶
type CaddyLogWriter ¶
type CaddyLogWriter struct{}
func (CaddyLogWriter) CaddyModule ¶
func (CaddyLogWriter) CaddyModule() caddy.ModuleInfo
func (CaddyLogWriter) OpenWriter ¶
func (CaddyLogWriter) OpenWriter() (io.WriteCloser, 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 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
type CaddyfileBackendConfig ¶
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
func NewFrontend ¶
func NewFrontend(cfg *FrontendConfig) (*Frontend, 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 ¶
func (m ZrokRequestsMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
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.
Click to show internal directories.
Click to hide internal directories.