webhook

package
v0.0.0-...-51eb59c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventTypePush        = "push"
	EventTypePullRequest = "pull_request"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeFunc

type ConsumeFunc func(event interface{})

type Listener

type Listener struct {
	*http.Server
	// contains filtered or unexported fields
}

func NewListener

func NewListener(conf *config.Config) *Listener

func (Listener) Handle

func (e Listener) Handle(msg interface{})

func (Listener) SubscribePullRequest

func (e Listener) SubscribePullRequest(consume ConsumeFunc)

func (Listener) SubscribePushEvent

func (e Listener) SubscribePushEvent(consume ConsumeFunc)

Jump to

Keyboard shortcuts

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