{"modulePath":"github.com/mycontroller-org/server/v2","version":"v2.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package webhook\n\n## Constants\n\n```go\nconst (\n\tPluginWebhook = \"webhook\"\n)\n```\n\n## Functions\n\n```go\nfunc New(ctx context.Context, handlerCfg *handlerTY.Config) (handlerTY.Plugin, error)\n```\n\n## Types\n\n```go\ntype WebhookClient struct {\n\tHandlerCfg *handlerTY.Config\n\tConfig     *WebhookConfig\n\t// contains filtered or unexported fields\n}\n```\nWebhookClient struct\n\n```go\nfunc (c *WebhookClient) Close() error\n```\nClose handler implementation\n\n```go\nfunc (p *WebhookClient) Name() string\n```\n\n```go\nfunc (c *WebhookClient) Post(parameters map[string]interface{}) error\n```\nPost handler implementation\n\n```go\nfunc (c *WebhookClient) Start() error\n```\nStart handler implementation\n\n```go\nfunc (c *WebhookClient) State() *types.State\n```\nState implementation\n\n```go\ntype WebhookConfig struct {\n\tServer          string\n\tAPI             string\n\tMethod          string\n\tInsecure        bool\n\tHeaders         map[string]string\n\tQueryParameters map[string]interface{}\n\tResponseCode    int\n\tAllowOverwrite  bool\n}\n```\nWebhookConfig for webhook\n\n```go\nfunc (cfg *WebhookConfig) Clone() *WebhookConfig\n```\nClone config data\n\n","path":"github.com/mycontroller-org/server/v2/plugin/handler/webhook","name":"webhook","synopsis":"","isRedistributable":true}
