ariang

package module
v0.0.0-...-cf4b607 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

README

Caddy-PProf

Build with xcaddy

$ xcaddy build \
    --with github.com/imgk/caddy-yacd

Config

{
    "apps": {
        "http": {
            "servers": {
                "": {
                    "routes": [
                        {
                            "handle": [
                                {
                                    "handler": "yacd"
                                }
                            ]
                        }
                    ]
                }
            }
        }
    }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS embed.FS

FS is ...

func (FS) Open

func (fs FS) Open(name string) (fs.File, error)

Open is ...

type Handler

type Handler struct {
	Prefix string `json:"prefix,omitempty"`

	Handler http.Handler
}

Handler implements an HTTP handler that ...

func (Handler) CaddyModule

func (Handler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (*Handler) Provision

func (m *Handler) Provision(ctx caddy.Context) error

Provision implements caddy.Provisioner.

func (*Handler) ServeHTTP

func (m *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) (err error)

ServeHTTP implements caddyhttp.MiddlewareHandler.

func (*Handler) UnmarshalCaddyfile

func (h *Handler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

UnmarshalCaddyfile unmarshals Caddyfile tokens into h.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL