18 lines
211 B
Go
Raw Normal View History

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
}