mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 04:18:01 +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
|
||
|
}
|