mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 16:17:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
17
apps/api/internal/notification/channels/webhook/config.go
Normal file
17
apps/api/internal/notification/channels/webhook/config.go
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user