Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() caddymiddleware.Middleware
Types ¶
type Middleware ¶
type Middleware struct { // The file or stream to write to. Can be "stdout" // or "stderr". Output string `json:"output,omitempty"` // contains filtered or unexported fields }
Middleware implements an HTTP handler that writes the visitor's IP address to a file or stream.
func (*Middleware) Cleanup ¶
func (m *Middleware) Cleanup() error
func (*Middleware) Provision ¶
func (m *Middleware) Provision() error
func (*Middleware) ServeHTTP ¶
func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddymiddleware.Handler) error
func (*Middleware) Validate ¶
func (m *Middleware) Validate() error
Click to show internal directories.
Click to hide internal directories.