webhook

package
v0.0.0-...-5500bd7 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type EventResponse

type EventResponse struct {
	StatusCode int    `json:"status_code"`
	RequestID  string `json:"request_id"`
	DeliveryID string `json:"delivery_id,omitempty"`
}

func (*EventResponse) Render

type Parser

type Parser interface {
	ValidatePayload(r *http.Request, secretToken []byte) (payload []byte, err error)
	ParseWebHook(messageType string, payload []byte) (interface{}, error)
}

func NewGHEventsParser

func NewGHEventsParser() Parser

Jump to

Keyboard shortcuts

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