github

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	KeySlackGithubIconURL = "notification.slack.github_icon_url"
)

Variables

This section is empty.

Functions

func Verify

func Verify(sign string, b []byte) error

Types

type Github

type Github struct {
}

func (*Github) CommitURL

func (s *Github) CommitURL(w *repository.Webhook) string

func (*Github) CompareURL

func (s *Github) CompareURL(w *repository.Webhook) string

func (*Github) IconURL

func (s *Github) IconURL() string

func (*Github) IsPing

func (s *Github) IsPing(r *http.Request, body []byte) bool

func (*Github) Name

func (s *Github) Name() string

func (*Github) PusherURL

func (s *Github) PusherURL(w *repository.Webhook) string

func (*Github) RefURL

func (s *Github) RefURL(w *repository.Webhook) string

func (*Github) RepositoryURL

func (s *Github) RepositoryURL(w *repository.Webhook) string

func (*Github) RequestID

func (s *Github) RequestID(r *http.Request) string

func (*Github) Unmarshal

func (s *Github) Unmarshal(r *http.Request, b []byte) (*repository.Webhook, error)

func (*Github) Verify

func (s *Github) Verify(r *http.Request, body []byte) error

func (*Github) WebhookProvider

func (s *Github) WebhookProvider() repository.WebhookProvider

Jump to

Keyboard shortcuts

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