mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 02:57:32 +00:00
18 lines
211 B
Go
18 lines
211 B
Go
package webhook
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
)
|
|
|
|
type Config struct {
|
|
CallURL string
|
|
Method string
|
|
Headers http.Header
|
|
}
|
|
|
|
func (w *Config) Validate() error {
|
|
_, err := url.Parse(w.CallURL)
|
|
return err
|
|
}
|