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 ¶ 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)
type BackendConfig ¶
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 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 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 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
func (m ZrokRequestsMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
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.
Click to show internal directories.
Click to hide internal directories.