target

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Target

type Target struct {
	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) AcceptsEvent

func (t *Target) AcceptsEvent(r *http.Request) bool

func (*Target) CheckPayload

func (t *Target) CheckPayload(r *http.Request) (payload []byte, err error)

func (*Target) FillHost

func (t *Target) FillHost() (err error)

func (*Target) ProxyRequest

func (t *Target) ProxyRequest(r *http.Request, payload []byte) (resp *http.Response, err error)

func (*Target) ServeHTTP

func (t *Target) ServeHTTP(rw http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL