Documentation ¶
Index ¶
- type Mirror
- func (*Mirror) CaddyModule() caddy.ModuleInfo
- func (m *Mirror) Cleanup() error
- func (m *Mirror) EnsureDefaults()
- func (m *Mirror) Provision(ctx caddy.Context) error
- func (m *Mirror) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (m *Mirror) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *Mirror) Validate() error
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mirror ¶
type Mirror struct { SamplingRate float64 `json:"sampling_rate,omitempty"` RequestConcurrency int `json:"request_concurrency,omitempty"` MaxBacklog int `json:"max_backlog,omitempty"` TargetServer string `json:"target,omitempty"` RequestTimeout time.Duration `json:"request_timeout,omitempty"` AlertInterval time.Duration `json:"alert_interval,omitempty"` // contains filtered or unexported fields }
func (*Mirror) CaddyModule ¶
func (*Mirror) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*Mirror) EnsureDefaults ¶
func (m *Mirror) EnsureDefaults()
func (*Mirror) UnmarshalCaddyfile ¶
Click to show internal directories.
Click to hide internal directories.