Documentation ¶
Index ¶
- type Target
- func (t *Target) AcceptsEvent(r *http.Request) bool
- func (t *Target) CheckPayload(r *http.Request) (payload []byte, err error)
- func (t *Target) FillHost() (err error)
- func (t *Target) ProxyRequest(r *http.Request, payload []byte) (resp *http.Response, err error)
- func (t *Target) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Target ¶
type Target struct { LoggerLevel zapcore.Level `mapstructure:"-"` Events []string `default:"[ping,push,pull_request]" mapstructure:"events" yaml:",flow"` Jenkins bool `mapstructure:"jenkins-validation" yaml:"jenkins-validation,omitempty"` Secret *string `mapstructure:"secret"` URL string `mapstructure:"url"` // contains filtered or unexported fields }
func (*Target) CheckPayload ¶
func (*Target) ProxyRequest ¶
Click to show internal directories.
Click to hide internal directories.