Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyMiddleware ¶
func VerifyMiddleware(config VerifyConfig) echo.MiddlewareFunc
VerifyMiddleware .. Verify whether request from GitHub
Types ¶
type ProcessPayloadFunc ¶
type VerifyConfig ¶
type VerifyConfig struct {
Secret string
}
VerifyConfig .. Configure GitHub secret key
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
func (Webhook) RegisterEvents ¶
func (hook Webhook) RegisterEvents(fn ProcessPayloadFunc, events ...gh.Event)
Click to show internal directories.
Click to hide internal directories.