Documentation
¶
Index ¶
- Constants
- type CaddyHandlerPlugin
- func (CaddyHandlerPlugin) CaddyModule() caddy.ModuleInfo
- func (chp *CaddyHandlerPlugin) Cleanup() error
- func (chp *CaddyHandlerPlugin) Provision(ctx caddy.Context) error
- func (chp *CaddyHandlerPlugin) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
- func (chp *CaddyHandlerPlugin) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
Constants ¶
View Source
const DirectiveName = "handler_plugin"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaddyHandlerPlugin ¶
type CaddyHandlerPlugin struct {
PluginPath string `json:"plugin_path,omitempty"`
PluginConfig map[string][]string `json:"plugin_config,omitempty"`
// contains filtered or unexported fields
}
func (CaddyHandlerPlugin) CaddyModule ¶
func (CaddyHandlerPlugin) CaddyModule() caddy.ModuleInfo
func (*CaddyHandlerPlugin) Cleanup ¶
func (chp *CaddyHandlerPlugin) Cleanup() error
func (*CaddyHandlerPlugin) Provision ¶
func (chp *CaddyHandlerPlugin) Provision(ctx caddy.Context) error
func (*CaddyHandlerPlugin) ServeHTTP ¶
func (chp *CaddyHandlerPlugin) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error
func (*CaddyHandlerPlugin) UnmarshalCaddyfile ¶
func (chp *CaddyHandlerPlugin) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler. Syntax:
hanler_plgun <plugin_path> {
<plugin_config>
}
Click to show internal directories.
Click to hide internal directories.