From 1e5f701961a763b93e4ef798ef1ae4da13ac6e50 Mon Sep 17 00:00:00 2001 From: Siva Chegondi <3098645+siva-chegondi@users.noreply.github.com> Date: Tue, 23 Apr 2019 05:10:25 +0530 Subject: [PATCH] RegisterClusterPlugin is from package caddytls --- Extending-Caddy.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Extending-Caddy.md b/Extending-Caddy.md index e4bc021..117a930 100644 --- a/Extending-Caddy.md +++ b/Extending-Caddy.md @@ -29,6 +29,7 @@ Start a new Go package with an init function and register your plugin with Caddy ```go import "github.com/mholt/caddy" +import "github.com/mholt/caddy/caddytls" func init() { // register a "generic" plugin, like a directive or middleware @@ -45,7 +46,7 @@ func init() { caddy.RegisterEventHook("eventName", myHookFn) // register a cluster plugin - caddy.RegisterClusterPlugin("name", constructorFn) + caddytls.RegisterClusterPlugin("name", constructorFn) // add a function that wraps listeners for the HTTP server // (it's more common for a directive to call this rather than a standalone plugin)