Documentation ¶
Overview ¶
Copyright (c) 2024 Daniel Brotsky.
All of the copyrighted work in this repository is licensed under the GNU Affero General Public License, reproduced in the LICENSE file.
Index ¶
- type AdobeUsageTracker
- func (AdobeUsageTracker) CaddyModule() caddy.ModuleInfo
- func (m *AdobeUsageTracker) Provision(caddy.Context) error
- func (m AdobeUsageTracker) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (m *AdobeUsageTracker) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
- func (m *AdobeUsageTracker) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdobeUsageTracker ¶
type AdobeUsageTracker struct { // The file or stream to write to. Can be "stdout" // or "stderr". Output string `json:"output,omitempty"` // contains filtered or unexported fields }
AdobeUsageTracker implements an HTTP handler that writes the visitor's IP address to a file or stream.
func (AdobeUsageTracker) CaddyModule ¶
func (AdobeUsageTracker) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*AdobeUsageTracker) Provision ¶
func (m *AdobeUsageTracker) Provision(caddy.Context) error
Provision implements caddy.Provisioner.
func (AdobeUsageTracker) ServeHTTP ¶
func (m AdobeUsageTracker) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
ServeHTTP implements caddyhttp.MiddlewareHandler.
func (*AdobeUsageTracker) UnmarshalCaddyfile ¶
func (m *AdobeUsageTracker) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (*AdobeUsageTracker) Validate ¶
func (m *AdobeUsageTracker) Validate() error
Validate implements caddy.Validator.
Click to show internal directories.
Click to hide internal directories.