|  | @@ -8,14 +8,8 @@ import (
 | 
											
												
													
														|  |  	"github.com/caddyserver/caddy"
 |  |  	"github.com/caddyserver/caddy"
 | 
											
												
													
														|  |  )
 |  |  )
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -// init registers this plugin within the Caddy plugin framework. It uses "example" as the
 |  | 
 | 
											
												
													
														|  | -// name, and couples it to the Action "setup".
 |  | 
 | 
											
												
													
														|  | -func init() {
 |  | 
 | 
											
												
													
														|  | -	caddy.RegisterPlugin("example", caddy.Plugin{
 |  | 
 | 
											
												
													
														|  | -		ServerType: "dns",
 |  | 
 | 
											
												
													
														|  | -		Action:     setup,
 |  | 
 | 
											
												
													
														|  | -	})
 |  | 
 | 
											
												
													
														|  | -}
 |  | 
 | 
											
												
													
														|  | 
 |  | +// init registers this plugin.
 | 
											
												
													
														|  | 
 |  | +func init() { plugin.Register("example", setup) }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  // setup is the function that gets called when the config parser see the token "example". Setup is responsible
 |  |  // setup is the function that gets called when the config parser see the token "example". Setup is responsible
 | 
											
												
													
														|  |  // for parsing any extra options the example plugin may have. The first token this function sees is "example".
 |  |  // for parsing any extra options the example plugin may have. The first token this function sees is "example".
 |