mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
16 lines
178 B
Go
16 lines
178 B
Go
|
package webhook
|
||
|
|
||
|
import (
|
||
|
"net/url"
|
||
|
)
|
||
|
|
||
|
type Config struct {
|
||
|
CallURL string
|
||
|
Method string
|
||
|
}
|
||
|
|
||
|
func (w *Config) Validate() error {
|
||
|
_, err := url.Parse(w.CallURL)
|
||
|
return err
|
||
|
}
|