receiver

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnabledRuleLabel label the receiver is looking out for if it should act
	EnabledRuleLabel = "githubfilesenabled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

type Receiver struct {
	// contains filtered or unexported fields
}

Receiver webhook receiver

func New

func New(filenameTmpl string, r *models.Repo, client *github.Client) *Receiver

New return new Alerts Receiver

func (*Receiver) Run added in v0.0.5

func (r *Receiver) Run(stopCh chan struct{}) error

Run run alert receiver loop. This contains the debounce logic for alerts.

func (*Receiver) ServeHTTP

func (r *Receiver) ServeHTTP(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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