|
@@ -9,7 +9,7 @@ import (
|
|
)
|
|
)
|
|
|
|
|
|
// init registers this plugin.
|
|
// init registers this plugin.
|
|
-func init() { plugin.Register("example", setup) }
|
|
|
|
|
|
+func init() { plugin.Register("bumple", 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".
|
|
@@ -19,7 +19,7 @@ func setup(c *caddy.Controller) error {
|
|
// If there was another token, return an error, because we don't have any configuration.
|
|
// If there was another token, return an error, because we don't have any configuration.
|
|
// Any errors returned from this setup function should be wrapped with plugin.Error, so we
|
|
// Any errors returned from this setup function should be wrapped with plugin.Error, so we
|
|
// can present a slightly nicer error message to the user.
|
|
// can present a slightly nicer error message to the user.
|
|
- return plugin.Error("example", c.ArgErr())
|
|
|
|
|
|
+ return plugin.Error("bumple", c.ArgErr())
|
|
}
|
|
}
|
|
|
|
|
|
// Add a startup function that will -- after all plugins have been loaded -- check if the
|
|
// Add a startup function that will -- after all plugins have been loaded -- check if the
|