mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-10-31 10:37:24 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			425 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			425 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package hook
 | |
| 
 | |
| import (
 | |
| 	"github.com/mholt/caddy"
 | |
| )
 | |
| 
 | |
| // Config describes how Hook should be configured and used.
 | |
| type Config struct {
 | |
| 	ID      string
 | |
| 	Event   caddy.EventName
 | |
| 	Command string
 | |
| 	Args    []string
 | |
| }
 | |
| 
 | |
| // SupportedEvents is a map of supported events.
 | |
| var SupportedEvents = map[string]caddy.EventName{
 | |
| 	"startup":   caddy.InstanceStartupEvent,
 | |
| 	"shutdown":  caddy.ShutdownEvent,
 | |
| 	"certrenew": caddy.CertRenewEvent,
 | |
| }
 |