hook

package
Version: v0.10.10 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

SupportedEvents is a map of supported events.

Functions

This section is empty.

Types

type Config

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

Config describes how Hook should be configured and used.

func (*Config) Hook

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

Hook executes a command.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL