github

package
v0.0.21 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: 0

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