caddy: Index | Files

package hook

import ""


Package Files

config.go hook.go


var SupportedEvents = map[string]caddy.EventName{
    "startup":   caddy.InstanceStartupEvent,
    "shutdown":  caddy.ShutdownEvent,
    "certrenew": caddy.CertRenewEvent,

SupportedEvents is a map of supported events.

type Config Uses

type Config struct {
    ID      string
    Event   caddy.EventName
    Command string
    Args    []string

Config describes how Hook should be configured and used.

func (*Config) Hook Uses

func (cfg *Config) Hook(event caddy.EventName, info interface{}) error

Hook executes a command.

Package hook imports 5 packages (graph) and is imported by 54 packages. Updated 2019-07-25. Refresh now. Tools for package owners.