Documentation
¶
Overview ¶
Package github provides GitHub App authentication, webhooks, and API client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App provides GitHub App authentication and webhook handling.
func NewAppFromTransport ¶
func NewAppFromTransport(tr *ghinstallation.AppsTransport, webhookSecret string) (*App, error)
NewAppFromTransport creates a new App using a pre-configured AppsTransport. This is useful for testing with custom base URLs.
func (*App) ClientForInstallation ¶
ClientForInstallation returns an authenticated GitHub client for the given installation.
func (*App) GetInstallationToken ¶
GetInstallationToken returns an installation access token for the given installation ID.
func (*App) ParseEvent ¶
ParseEvent parses a webhook payload into a typed event struct.