Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookEvent ¶
func (*WebhookEvent) CheckPayloadSignature ¶
func (e *WebhookEvent) CheckPayloadSignature() error
CheckPayloadSignature calculates and verifies SHA1 signature of the given payload
func (*WebhookEvent) Process ¶
func (e *WebhookEvent) Process(evt event.EventManager) error
Process a webhook event
type WebhookRepository ¶
type WebhookRepository struct {
// contains filtered or unexported fields
}
func NewWebhookRepository ¶
func NewWebhookRepository(database *data.DB) WebhookRepository
func (*WebhookRepository) Delete ¶
func (repo *WebhookRepository) Delete(id int)
func (*WebhookRepository) Fetch ¶
func (repo *WebhookRepository) Fetch(id int) *Webhook
func (*WebhookRepository) FetchAll ¶
func (repo *WebhookRepository) FetchAll() []*Webhook
func (*WebhookRepository) Save ¶
func (repo *WebhookRepository) Save(webhook *Webhook)
Click to show internal directories.
Click to hide internal directories.