diff --git a/plugin/README.md b/plugin/README.md index dcb6bbedcf8..ce70d944fc3 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -36,6 +36,10 @@ type Manager interface { Plugins() map[string]Plugin Register(name string, plugin Plugin) error } + +// Handler is the plugin middleware handler which wraps an existing http.Handler passed in. +// Its the responsibility of the Handler to call the next http.Handler in the chain. +type Handler func(http.Handler) http.Handler ``` ## How to use it