hook

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 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.

Jump to

Keyboard shortcuts

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